pub struct Lease<T> {
pub holder: u128,
pub duration: Duration,
/* private fields */
}Expand description
Represents a lease on a Sovereign resource.
Fields§
§holder: u128The holder’s unique identifier.
duration: DurationDuration of the lease.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for Lease<T>
impl<T> RefUnwindSafe for Lease<T>where
T: RefUnwindSafe,
impl<T> Send for Lease<T>where
T: Send,
impl<T> Sync for Lease<T>where
T: Sync,
impl<T> Unpin for Lease<T>where
T: Unpin,
impl<T> UnwindSafe for Lease<T>where
T: UnwindSafe,
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