Enum redis::cluster_routing::RoutingInfo
source · pub enum RoutingInfo {
SingleNode(SingleNodeRoutingInfo),
MultiNode((MultipleNodeRoutingInfo, Option<ResponsePolicy>)),
}
Expand description
Defines whether a request should be routed to a single node, or multiple ones.
Variants§
SingleNode(SingleNodeRoutingInfo)
Route to single node
MultiNode((MultipleNodeRoutingInfo, Option<ResponsePolicy>))
Route to multiple nodes
Implementations§
source§impl RoutingInfo
impl RoutingInfo
sourcepub fn for_routable<R>(r: &R) -> Option<RoutingInfo>
pub fn for_routable<R>(r: &R) -> Option<RoutingInfo>
Returns the routing info for r
.
Trait Implementations§
source§impl Clone for RoutingInfo
impl Clone for RoutingInfo
source§fn clone(&self) -> RoutingInfo
fn clone(&self) -> RoutingInfo
Returns a copy 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 RoutingInfo
impl Debug for RoutingInfo
source§impl PartialEq for RoutingInfo
impl PartialEq for RoutingInfo
source§fn eq(&self, other: &RoutingInfo) -> bool
fn eq(&self, other: &RoutingInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RoutingInfo
Auto Trait Implementations§
impl RefUnwindSafe for RoutingInfo
impl Send for RoutingInfo
impl Sync for RoutingInfo
impl Unpin for RoutingInfo
impl UnwindSafe for RoutingInfo
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