#[non_exhaustive]pub enum SingleNodeRoutingInfo {
Random,
RandomPrimary,
SpecificNode(Route),
ByAddress {
host: String,
port: u16,
},
}Available on crate feature
cluster only.Expand description
Defines which single node should receive a request.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Random
Route to any node at random
RandomPrimary
Route to any primary node
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 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 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