pub enum WriteKind {
Mutate,
Create,
Unwrap,
}Expand description
How an object came to be in the store after a transaction wrote it.
Not a wire type: this tags an object reported by
TransactionEffectsV1::all_changed_objects with which of the object sets
it came from.
Variants§
Mutate
The object existed already and the transaction changed its contents.
Create
The transaction created the object.
Unwrap
The object was wrapped inside another object, and the transaction restored it to the store.
Trait Implementations§
impl Copy for WriteKind
impl Eq for WriteKind
Source§impl Ord for WriteKind
impl Ord for WriteKind
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
Source§impl PartialOrd for WriteKind
impl PartialOrd for WriteKind
impl StructuralPartialEq for WriteKind
Auto Trait Implementations§
impl Freeze for WriteKind
impl RefUnwindSafe for WriteKind
impl Send for WriteKind
impl Sync for WriteKind
impl Unpin for WriteKind
impl UnsafeUnpin for WriteKind
impl UnwindSafe for WriteKind
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