pub enum RoutingInfo {
SingleNode(SingleNodeRoutingInfo),
MultiNode((MultipleNodeRoutingInfo, Option<ResponsePolicy>)),
}
Available on crate feature
cluster
only.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
impl StructuralPartialEq for RoutingInfo
Auto Trait Implementations§
impl Freeze for RoutingInfo
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)