pub struct OperationLease { /* private fields */ }Expand description
Bounded effect authority tied to the journal writer fence that recorded it.
Implementations§
Source§impl OperationLease
impl OperationLease
Sourcepub const fn id(&self) -> &OperationLeaseId
pub const fn id(&self) -> &OperationLeaseId
Returns the semantic lease identity.
Sourcepub const fn operation(&self) -> &OperationId
pub const fn operation(&self) -> &OperationId
Returns the stable operation protected by the lease.
Sourcepub const fn acquired_at(&self) -> u64
pub const fn acquired_at(&self) -> u64
Returns the caller-supplied monotonic acquisition tick.
Sourcepub const fn expires_at(&self) -> u64
pub const fn expires_at(&self) -> u64
Returns the exclusive caller-supplied monotonic expiry tick.
Sourcepub const fn is_live_at(&self, now: u64) -> bool
pub const fn is_live_at(&self, now: u64) -> bool
Returns true while the explicit monotonic time remains inside the bound.
Sourcepub fn canonical_datum(&self) -> Datum
pub fn canonical_datum(&self) -> Datum
Returns the canonical semantic lease value.
Trait Implementations§
Source§impl Clone for OperationLease
impl Clone for OperationLease
Source§fn clone(&self) -> OperationLease
fn clone(&self) -> OperationLease
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 OperationLease
impl Debug for OperationLease
impl Eq for OperationLease
Source§impl PartialEq for OperationLease
impl PartialEq for OperationLease
impl StructuralPartialEq for OperationLease
Auto Trait Implementations§
impl Freeze for OperationLease
impl RefUnwindSafe for OperationLease
impl Send for OperationLease
impl Sync for OperationLease
impl Unpin for OperationLease
impl UnsafeUnpin for OperationLease
impl UnwindSafe for OperationLease
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