Enum mongodb::options::ServerAddress [−][src]
Expand description
An enum representing the address of a MongoDB server.
Currently this just supports addresses that can be connected to over TCP, but alternative address types may be supported in the future (e.g. Unix Domain Socket paths).
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.
A TCP/IP host and port combination.
Fields of Tcp
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ServerAddress
impl Send for ServerAddress
impl Sync for ServerAddress
impl Unpin for ServerAddress
impl UnwindSafe for ServerAddress
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.