pub struct LeaseToken {
pub resource: String,
pub owner: LeaseOwner,
pub epoch: u64,
}Expand description
Fencing token returned to a lease holder.
Fields§
§resource: StringResource governed by this token.
owner: LeaseOwnerOwner that acquired the token.
epoch: u64Monotonic fencing epoch.
Trait Implementations§
Source§impl Clone for LeaseToken
impl Clone for LeaseToken
Source§fn clone(&self) -> LeaseToken
fn clone(&self) -> LeaseToken
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeaseToken
impl Debug for LeaseToken
impl Eq for LeaseToken
Source§impl PartialEq for LeaseToken
impl PartialEq for LeaseToken
impl StructuralPartialEq for LeaseToken
Auto Trait Implementations§
impl Freeze for LeaseToken
impl RefUnwindSafe for LeaseToken
impl Send for LeaseToken
impl Sync for LeaseToken
impl Unpin for LeaseToken
impl UnsafeUnpin for LeaseToken
impl UnwindSafe for LeaseToken
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