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