pub struct LockLease {
pub lock_id: NetId64,
pub key: LockKey,
pub owner: LockOwner,
pub acquired_at_ms: u64,
pub expires_at_ms: u64,
pub state_revision: u64,
}Expand description
One current lock tenure returned by the authoritative table.
Fields§
§lock_id: NetId64§key: LockKey§owner: LockOwner§acquired_at_ms: u64Host-monotonic milliseconds at which this tenure began.
expires_at_ms: u64Host-monotonic expiry deadline.
state_revision: u64Implementations§
Source§impl LockLease
impl LockLease
Sourcepub fn fencing_token(&self) -> FenceToken
pub fn fencing_token(&self) -> FenceToken
Strictly increasing token for successive lock tenures.
pub fn is_expired_at(&self, now_ms: u64) -> bool
Trait Implementations§
impl Eq for LockLease
impl StructuralPartialEq for LockLease
Auto Trait Implementations§
impl !Freeze for LockLease
impl RefUnwindSafe for LockLease
impl Send for LockLease
impl Sync for LockLease
impl Unpin for LockLease
impl UnsafeUnpin for LockLease
impl UnwindSafe for LockLease
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