pub enum Moved {
Missing,
Taken,
Ok,
}Expand description
What a rename or a copy did.
Variants§
Missing
There was no source key, so there was nothing to move.
Taken
The destination was there and the caller said not to write over it.
Ok
It happened.
Implementations§
Source§impl Moved
So that a caller can write ? on a rename without unpacking the enum.
impl Moved
So that a caller can write ? on a rename without unpacking the enum.
Moved::Taken is not an error here, because for RENAMENX it is the whole
answer and for RENAME it cannot happen.
Sourcepub fn found(self) -> Result<Moved, Error>
pub fn found(self) -> Result<Moved, Error>
The source was there, or the error RENAME gives when it was not.
§Errors
yo_common::Code::Invalid with Redis’s no such key for
Moved::Missing.
Trait Implementations§
impl Copy for Moved
impl Eq for Moved
impl StructuralPartialEq for Moved
Auto Trait Implementations§
impl Freeze for Moved
impl RefUnwindSafe for Moved
impl Send for Moved
impl Sync for Moved
impl Unpin for Moved
impl UnsafeUnpin for Moved
impl UnwindSafe for Moved
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