pub enum NodePreference {
Leader,
Follower,
Random,
ReadOnlyReplica,
}
Expand description
Indicates which order of preferred nodes for connecting to.
Variants
Leader
When attempting connection, prefers leader nodes.
Follower
When attempting connection, prefers follower nodes.
Random
When attempting connection, has no node preference.
ReadOnlyReplica
When attempting connection, prefers read-replica nodes.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for NodePreference
impl Send for NodePreference
impl Sync for NodePreference
impl Unpin for NodePreference
impl UnwindSafe for NodePreference
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more