pub struct SetOutcome {
pub stored: bool,
pub previous: Option<Vec<u8>>,
}Expand description
What a SET did.
Fields§
§stored: boolWhether the value was written. NX, XX and IFEQ can all say no.
previous: Option<Vec<u8>>The previous value, when GET was asked for and there was one.
Owned, because the record it lived in has been written over by the time
this is handed back, and only ever filled in by Keyspace::set. A
caller that does not want the copy calls Keyspace::set_with and gets
the old value where it still lives, which is what the wire does.
Trait Implementations§
Source§impl Clone for SetOutcome
impl Clone for SetOutcome
Source§fn clone(&self) -> SetOutcome
fn clone(&self) -> SetOutcome
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 SetOutcome
impl Debug for SetOutcome
Source§impl Default for SetOutcome
impl Default for SetOutcome
Source§fn default() -> SetOutcome
fn default() -> SetOutcome
Returns the “default value” for a type. Read more
impl Eq for SetOutcome
Source§impl PartialEq for SetOutcome
impl PartialEq for SetOutcome
impl StructuralPartialEq for SetOutcome
Auto Trait Implementations§
impl Freeze for SetOutcome
impl RefUnwindSafe for SetOutcome
impl Send for SetOutcome
impl Sync for SetOutcome
impl Unpin for SetOutcome
impl UnsafeUnpin for SetOutcome
impl UnwindSafe for SetOutcome
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