pub struct NetLease { /* private fields */ }Expand description
A network lease that auto-frees on drop.
Wraps a FabricNet handle with RAII lifecycle management.
Created via NetBuilder::acquire.
Implementations§
Source§impl NetLease
impl NetLease
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 NetLease
impl !RefUnwindSafe for NetLease
impl !Send for NetLease
impl !Sync for NetLease
impl Unpin for NetLease
impl !UnwindSafe for NetLease
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