[−][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 ReadPreference
pub 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>>>
) -> ReadPreference
pub fn to_document(&self) -> Document
[src]
pub fn to_document(&self) -> Document
Trait Implementations
impl PartialEq<ReadPreference> for ReadPreference
[src]
impl PartialEq<ReadPreference> for ReadPreference
fn eq(&self, other: &ReadPreference) -> bool
[src]
fn eq(&self, other: &ReadPreference) -> bool
fn ne(&self, other: &ReadPreference) -> bool
[src]
fn ne(&self, other: &ReadPreference) -> bool
impl Eq for ReadPreference
[src]
impl Eq for ReadPreference
impl Clone for ReadPreference
[src]
impl Clone for ReadPreference
fn clone(&self) -> ReadPreference
[src]
fn clone(&self) -> ReadPreference
fn 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 Ord for ReadPreference
[src]
impl Ord for ReadPreference
fn cmp(&self, other: &ReadPreference) -> Ordering
[src]
fn cmp(&self, other: &ReadPreference) -> Ordering
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
1.21.0
[src]Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0
[src]Compares and returns the minimum of two values. Read more
impl PartialOrd<ReadPreference> for ReadPreference
[src]
impl PartialOrd<ReadPreference> for ReadPreference
fn 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) -> bool
fn le(&self, other: &ReadPreference) -> bool
[src]
fn le(&self, other: &ReadPreference) -> bool
fn gt(&self, other: &ReadPreference) -> bool
[src]
fn gt(&self, other: &ReadPreference) -> bool
fn ge(&self, other: &ReadPreference) -> bool
[src]
fn ge(&self, other: &ReadPreference) -> bool
impl Debug for ReadPreference
[src]
impl Debug for ReadPreference
impl Hash for ReadPreference
[src]
impl Hash for ReadPreference
Auto Trait Implementations
impl Send for ReadPreference
impl Send for ReadPreference
impl Sync for ReadPreference
impl Sync for ReadPreference
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
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> 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 T
impl<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> 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) -> TypeId
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) -> bool
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T, U> TryInto for T where
U: TryFrom<T>,
impl<T> Same for T
impl<T> Same for T
type Output = T
Should always be Self