pub struct Lease {
pub id: ResourceId,
pub fence: u64,
pub holder: NodeId,
pub holder_incarnation: Incarnation,
}Expand description
Reserved capacity on one resource. Plain data: it crosses processes as numbers, and the owner validates it against the slot before use.
Fields§
§id: ResourceId§fence: u64Strictly increasing per slot; a later lease on the same resource has a larger fence, so a stale holder can be told from the current.
holder: NodeId§holder_incarnation: IncarnationTrait Implementations§
impl Copy for Lease
impl Eq for Lease
impl StructuralPartialEq for Lease
Auto Trait Implementations§
impl Freeze for Lease
impl RefUnwindSafe for Lease
impl Send for Lease
impl Sync for Lease
impl Unpin for Lease
impl UnsafeUnpin for Lease
impl UnwindSafe for Lease
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