Enum redis_protocol::types::Redirection
source · [−]Expand description
A cluster redirection message.
https://redis.io/topics/cluster-spec#redirection-and-resharding
Variants
Moved
Ask
Implementations
sourceimpl Redirection
impl Redirection
pub fn to_resp2_frame(&self) -> Resp2Frame
pub fn to_resp3_frame(&self) -> Resp3Frame
Trait Implementations
sourceimpl Clone for Redirection
impl Clone for Redirection
sourcefn clone(&self) -> Redirection
fn clone(&self) -> Redirection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Redirection
impl Debug for Redirection
sourceimpl<'a> From<&'a Redirection> for Frame
impl<'a> From<&'a Redirection> for Frame
sourcefn from(redirection: &'a Redirection) -> Self
fn from(redirection: &'a Redirection) -> Self
Converts to this type from the input type.
sourceimpl From<Redirection> for Frame
impl From<Redirection> for Frame
sourcefn from(redirection: Redirection) -> Self
fn from(redirection: Redirection) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Redirection> for Redirection
impl PartialEq<Redirection> for Redirection
sourcefn eq(&self, other: &Redirection) -> bool
fn eq(&self, other: &Redirection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Redirection) -> bool
fn ne(&self, other: &Redirection) -> bool
This method tests for !=
.
impl Eq for Redirection
impl StructuralEq for Redirection
impl StructuralPartialEq for Redirection
Auto Trait Implementations
impl RefUnwindSafe for Redirection
impl Send for Redirection
impl Sync for Redirection
impl Unpin for Redirection
impl UnwindSafe for Redirection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more