#[non_exhaustive]
pub enum HostInfo {
HostIdentifiers(Vec<ServerAddress, Global>),
DnsRecord(String),
}
Expand description
Specification for mongodb server connections.
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.
HostIdentifiers(Vec<ServerAddress, Global>)
A set of addresses.
DnsRecord(String)
A DNS record for SRV lookup.
Trait Implementations
impl StructuralPartialEq for HostInfo
Auto Trait Implementations
impl RefUnwindSafe for HostInfo
impl Send for HostInfo
impl Sync for HostInfo
impl Unpin for HostInfo
impl UnwindSafe for HostInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more