pub enum SingleNodeRoutingInfo {
Random,
SpecificNode(Route),
ByAddress {
host: String,
port: u16,
},
}
Available on crate feature
cluster
only.Expand description
Defines which single node should receive a request.
Variants§
Random
Route to any node at random
SpecificNode(Route)
Route to the node that matches the Route
ByAddress
Route to the node with the given address.
Trait Implementations§
Source§impl Clone for SingleNodeRoutingInfo
impl Clone for SingleNodeRoutingInfo
Source§fn clone(&self) -> SingleNodeRoutingInfo
fn clone(&self) -> SingleNodeRoutingInfo
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 SingleNodeRoutingInfo
impl Debug for SingleNodeRoutingInfo
Source§impl PartialEq for SingleNodeRoutingInfo
impl PartialEq for SingleNodeRoutingInfo
impl StructuralPartialEq for SingleNodeRoutingInfo
Auto Trait Implementations§
impl Freeze for SingleNodeRoutingInfo
impl RefUnwindSafe for SingleNodeRoutingInfo
impl Send for SingleNodeRoutingInfo
impl Sync for SingleNodeRoutingInfo
impl Unpin for SingleNodeRoutingInfo
impl UnwindSafe for SingleNodeRoutingInfo
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