pub struct CpuLease { /* private fields */ }Expand description
A CPU lease that auto-frees on drop.
Wraps a FabricCpu handle with RAII lifecycle management.
Created via CpuBuilder::acquire.
Implementations§
Source§impl CpuLease
impl CpuLease
Sourcepub fn info(&self) -> LeaseInfo
pub fn info(&self) -> LeaseInfo
Lease metadata snapshot (id, creation time, expiry, and status).
Sourcepub fn created_at_unix_secs(&self) -> u64
pub fn created_at_unix_secs(&self) -> u64
Lease creation timestamp (unix seconds).
Sourcepub fn expires_at_unix_secs(&self) -> u64
pub fn expires_at_unix_secs(&self) -> u64
Lease expiry timestamp (unix seconds).
Sourcepub fn status(&self) -> LeaseStatus
pub fn status(&self) -> LeaseStatus
Current lease status.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuLease
impl !RefUnwindSafe for CpuLease
impl !Send for CpuLease
impl !Sync for CpuLease
impl Unpin for CpuLease
impl !UnwindSafe for CpuLease
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more