pub enum InputSharedObject {
Mutate(ObjectReference),
ReadOnly(ObjectReference),
ReadDeleted(ObjectVersion),
MutateDeleted(ObjectVersion),
Canceled(ObjectVersion),
}Expand description
A shared object an executed transaction took as input.
Not a wire type: this is the effects’ view of the shared objects a transaction was sequenced against, drawn from both the objects it changed and those it left unchanged.
Variants§
Mutate(ObjectReference)
Taken mutably, and written back by the transaction.
ReadOnly(ObjectReference)
Read without being mutated.
ReadDeleted(ObjectVersion)
Read, but already deleted by an earlier transaction.
MutateDeleted(ObjectVersion)
Taken mutably, but already deleted by an earlier transaction.
Canceled(ObjectVersion)
Taken by a transaction that consensus canceled; the version carries the cancellation reason.
Implementations§
Sourcepub fn object_reference(&self) -> ObjectReference
pub fn object_reference(&self) -> ObjectReference
The object’s reference. A shared object that no longer exists is reported at the version it was last known at, with the tombstone digest for why it is gone.
Trait Implementations§
Source§fn clone(&self) -> InputSharedObject
fn clone(&self) -> InputSharedObject
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§fn cmp(&self, other: &InputSharedObject) -> Ordering
fn cmp(&self, other: &InputSharedObject) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Auto Trait Implementations§
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