pub struct MemLeaseAdapter { /* private fields */ }Expand description
Adapter wrapping a MemLease as a RenewableLease.
Implementations§
Trait Implementations§
Source§impl RenewableLease for MemLeaseAdapter
impl RenewableLease for MemLeaseAdapter
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 MemLeaseAdapter
impl !RefUnwindSafe for MemLeaseAdapter
impl !Send for MemLeaseAdapter
impl !Sync for MemLeaseAdapter
impl Unpin for MemLeaseAdapter
impl !UnwindSafe for MemLeaseAdapter
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