pub enum Redirection {
Moved {
slot: u16,
server: String,
},
Ask {
slot: u16,
server: String,
},
}Expand description
A cluster redirection message.
https://redis.io/topics/cluster-spec#redirection-and-resharding
Variants§
Implementations§
Source§impl Redirection
impl Redirection
pub fn to_resp2_frame(&self) -> Resp2Frame
pub fn to_resp3_frame(&self) -> Resp3Frame
Trait Implementations§
Source§impl Clone for Redirection
impl Clone for Redirection
Source§fn clone(&self) -> Redirection
fn clone(&self) -> Redirection
Returns a duplicate of the value. Read more
1.0.0 · 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 Redirection
impl Debug for Redirection
Source§impl<'a> From<&'a Redirection> for Frame
impl<'a> From<&'a Redirection> for Frame
Source§fn from(redirection: &'a Redirection) -> Self
fn from(redirection: &'a Redirection) -> Self
Converts to this type from the input type.
Source§impl From<Redirection> for Frame
impl From<Redirection> for Frame
Source§fn from(redirection: Redirection) -> Self
fn from(redirection: Redirection) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Redirection
impl PartialEq for Redirection
impl Eq for Redirection
impl StructuralPartialEq for Redirection
Auto Trait Implementations§
impl Freeze for Redirection
impl RefUnwindSafe for Redirection
impl Send for Redirection
impl Sync for Redirection
impl Unpin for Redirection
impl UnwindSafe for Redirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more