pub struct ObservationOp {
pub op: Op,
pub expectation: Expectation,
}Expand description
One observed operation together with its arbitration precondition.
Fields§
§op: OpProposed path mutation.
expectation: ExpectationArbitration precondition for that mutation.
Implementations§
Source§impl ObservationOp
impl ObservationOp
Sourcepub const fn unconditional(op: Op) -> ObservationOp
pub const fn unconditional(op: Op) -> ObservationOp
An operation whose fresh verification makes arrival order authoritative.
Sourcepub const fn if_state(op: Op, expected: PathExpectation) -> ObservationOp
pub const fn if_state(op: Op, expected: PathExpectation) -> ObservationOp
An operation valid only while expected still matches the index.
Trait Implementations§
Source§impl Clone for ObservationOp
impl Clone for ObservationOp
Source§fn clone(&self) -> ObservationOp
fn clone(&self) -> ObservationOp
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 ObservationOp
impl Debug for ObservationOp
impl Eq for ObservationOp
Source§impl PartialEq for ObservationOp
impl PartialEq for ObservationOp
impl StructuralPartialEq for ObservationOp
Auto Trait Implementations§
impl Freeze for ObservationOp
impl RefUnwindSafe for ObservationOp
impl Send for ObservationOp
impl Sync for ObservationOp
impl Unpin for ObservationOp
impl UnsafeUnpin for ObservationOp
impl UnwindSafe for ObservationOp
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