pub enum RenameOutcome {
Renamed,
NoSuchSrc,
DstExists,
}Expand description
Outcome of Store::rename — three-way result so the dispatch
layer can pick the right RESP frame (+OK / -ERR no such key /
:0 for RENAMENX-with-existing-dst).
Variants§
Renamed
Source removed, destination created (overwriting any prior dst).
NoSuchSrc
Source key doesn’t exist.
DstExists
RENAMENX only — destination already exists, no rename done.
Trait Implementations§
Source§impl Debug for RenameOutcome
impl Debug for RenameOutcome
impl Eq for RenameOutcome
Source§impl PartialEq for RenameOutcome
impl PartialEq for RenameOutcome
Source§fn eq(&self, other: &RenameOutcome) -> bool
fn eq(&self, other: &RenameOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RenameOutcome
Auto Trait Implementations§
impl Freeze for RenameOutcome
impl RefUnwindSafe for RenameOutcome
impl Send for RenameOutcome
impl Sync for RenameOutcome
impl Unpin for RenameOutcome
impl UnsafeUnpin for RenameOutcome
impl UnwindSafe for RenameOutcome
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