pub struct CpuLeaseAdapter { /* private fields */ }Expand description
Adapter wrapping a CpuLease as a RenewableLease.
Implementations§
Trait Implementations§
Source§impl RenewableLease for CpuLeaseAdapter
impl RenewableLease for CpuLeaseAdapter
Source§fn expires_at_unix_secs(&self) -> u64
fn expires_at_unix_secs(&self) -> u64
Returns the unix timestamp (seconds) at which the lease expires.
Source§fn renew(&mut self, duration_secs: u64) -> Result<(), FabricError>
fn renew(&mut self, duration_secs: u64) -> Result<(), FabricError>
Attempt to renew the lease for
duration_secs additional seconds.Source§fn status(&self) -> LeaseStatus
fn status(&self) -> LeaseStatus
Query the current lease status.
Auto Trait Implementations§
impl Freeze for CpuLeaseAdapter
impl !RefUnwindSafe for CpuLeaseAdapter
impl !Send for CpuLeaseAdapter
impl !Sync for CpuLeaseAdapter
impl Unpin for CpuLeaseAdapter
impl !UnwindSafe for CpuLeaseAdapter
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