[−][src]Struct mongodb::common::ReadPreference
Fields
mode: ReadMode
Indicates how a server should be selected during read operations.
tag_sets: Vec<BTreeMap<String, String>>
Filters servers based on the first tag set that matches at least one server.
Methods
impl ReadPreference[src]
impl ReadPreferencepub fn new(
mode: ReadMode,
tag_sets: Option<Vec<BTreeMap<String, String>>>
) -> ReadPreference[src]
pub fn new(
mode: ReadMode,
tag_sets: Option<Vec<BTreeMap<String, String>>>
) -> ReadPreferencepub fn to_document(&self) -> Document[src]
pub fn to_document(&self) -> DocumentTrait Implementations
impl Clone for ReadPreference[src]
impl Clone for ReadPreferencefn clone(&self) -> ReadPreference[src]
fn clone(&self) -> ReadPreferencefn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Eq for ReadPreference[src]
impl Eq for ReadPreferenceimpl PartialOrd<ReadPreference> for ReadPreference[src]
impl PartialOrd<ReadPreference> for ReadPreferencefn partial_cmp(&self, other: &ReadPreference) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &ReadPreference) -> Option<Ordering>fn lt(&self, other: &ReadPreference) -> bool[src]
fn lt(&self, other: &ReadPreference) -> boolfn le(&self, other: &ReadPreference) -> bool[src]
fn le(&self, other: &ReadPreference) -> boolfn gt(&self, other: &ReadPreference) -> bool[src]
fn gt(&self, other: &ReadPreference) -> boolfn ge(&self, other: &ReadPreference) -> bool[src]
fn ge(&self, other: &ReadPreference) -> boolimpl PartialEq<ReadPreference> for ReadPreference[src]
impl PartialEq<ReadPreference> for ReadPreferencefn eq(&self, other: &ReadPreference) -> bool[src]
fn eq(&self, other: &ReadPreference) -> boolfn ne(&self, other: &ReadPreference) -> bool[src]
fn ne(&self, other: &ReadPreference) -> boolimpl Ord for ReadPreference[src]
impl Ord for ReadPreferencefn cmp(&self, other: &ReadPreference) -> Ordering[src]
fn cmp(&self, other: &ReadPreference) -> Orderingfn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> Self1.21.0
[src]Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> Self1.21.0
[src]Compares and returns the minimum of two values. Read more
impl Debug for ReadPreference[src]
impl Debug for ReadPreferenceimpl Hash for ReadPreference[src]
impl Hash for ReadPreferenceAuto Trait Implementations
impl Send for ReadPreference
impl Send for ReadPreferenceimpl Sync for ReadPreference
impl Sync for ReadPreferenceBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>, impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, fn equivalent(&self, key: &K) -> bool[src]
fn equivalent(&self, key: &K) -> boolimpl<T> Same for T
impl<T> Same for Ttype Output = T
Should always be Self