pub enum Action {
Unknown,
Insert,
Update,
}Expand description
Represents the outcome of an update() operation.
Variants§
Unknown
It is unknown whether a new key-value pair was inserted or the value associated with an existing key was updated.
This is the expected return value, if the hooks feature is not enabled.
Insert
Indicates that a new key-value pair was inserted.
Update
Indicates that the value associated with an existing key was updated.
Please note that Action::Update does not guarantee that the value associated with the key has actually changed – it is possible to “update” the associated value of a key to a new value that is equal to the previously associated value.
Trait Implementations§
impl Eq for Action
Source§impl Ord for Action
impl Ord for Action
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 Action
impl PartialOrd for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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