pub struct Claim<const A: usize> {
pub endpoint: EndpointId,
pub cluster: ClusterId,
pub writer: Writer,
pub attributes: Vec<AttributeId, A>,
pub deadline: Instant,
}Expand description
One Atomic Write State (§7.15.3).
Fields§
§endpoint: EndpointIdWhich endpoint.
cluster: ClusterIdWhich cluster instance on it.
writer: WriterWho holds it.
attributes: Vec<AttributeId, A>The attributes it covers.
deadline: InstantWhen it lapses if no CommitWrite arrives (§7.15.6.4 BeginWrite step 3(e)(iii)).
Implementations§
Source§impl<const A: usize> Claim<A>
impl<const A: usize> Claim<A>
Sourcepub fn as_ref(&self) -> ClaimRef<'_>
pub fn as_ref(&self) -> ClaimRef<'_>
A borrowed, non-generic view of this claim.
What InteractionContext carries: the server needs only “which attributes, on which
cluster instance”, and threading A through every layer that touches a write would
spread one table’s sizing across the whole interaction model.
Trait Implementations§
impl<const A: usize> Eq for Claim<A>
impl<const A: usize> StructuralPartialEq for Claim<A>
Auto Trait Implementations§
impl<const A: usize> Forget for Claim<A>
impl<const A: usize> Freeze for Claim<A>
impl<const A: usize> Move for Claim<A>
impl<const A: usize> RefUnwindSafe for Claim<A>
impl<const A: usize> Send for Claim<A>
impl<const A: usize> Sync for Claim<A>
impl<const A: usize> Unpin for Claim<A>
impl<const A: usize> UnsafeUnpin for Claim<A>
impl<const A: usize> UnwindSafe for Claim<A>
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