Enum eventstore::prelude::NodePreference
source · 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§
source§impl Clone for NodePreference
impl Clone for NodePreference
source§fn clone(&self) -> NodePreference
fn clone(&self) -> NodePreference
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 NodePreference
impl Debug for NodePreference
source§impl Default for NodePreference
impl Default for NodePreference
source§fn default() -> NodePreference
fn default() -> NodePreference
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NodePreference
impl<'de> Deserialize<'de> for NodePreference
source§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
source§impl Display for NodePreference
impl Display for NodePreference
source§impl PartialEq for NodePreference
impl PartialEq for NodePreference
source§fn eq(&self, other: &NodePreference) -> bool
fn eq(&self, other: &NodePreference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NodePreference
impl Serialize for NodePreference
impl Copy for NodePreference
impl Eq for NodePreference
impl StructuralPartialEq for NodePreference
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§
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request