pub struct Claim {
pub device: DeviceId,
pub number: u64,
pub work: ClaimWork,
pub attempts: Vec<ObjectPath>,
pub settlement: ClaimSettlement,
}Expand description
A claim retains every attempt, including attempts that lost contention.
Fields§
§device: DeviceIdThe installation that reserved this number.
number: u64One monotonically increasing number across every slot kind.
work: ClaimWorkThe queue batch or journal operation which owns it.
attempts: Vec<ObjectPath>Attempts in their durable order; only the last can be outstanding.
settlement: ClaimSettlementWhat authoritative storage reads established about the last attempt.
Trait Implementations§
impl Eq for Claim
impl StructuralPartialEq for Claim
Auto Trait Implementations§
impl Freeze for Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.