Struct mongodb::topology::server::Server
[−]
[src]
pub struct Server { pub host: Host, pub description: Arc<RwLock<ServerDescription>>, // some fields omitted }
Holds status and connection information about a single server.
Fields
host: Host
Host connection details.
description: Arc<RwLock<ServerDescription>>
Monitored server information.
Methods
impl Server
[src]
fn new(client: Client,
host: Host,
top_description: Arc<RwLock<TopologyDescription>>,
run_monitor: bool)
-> Server
host: Host,
top_description: Arc<RwLock<TopologyDescription>>,
run_monitor: bool)
-> Server
Returns a new server with the given host, initializing a new connection pool and monitor.
fn acquire_stream(&self) -> Result<PooledStream>
Returns a server stream from the connection pool.
fn request_update(&self)
Request an update from the monitor on the server status.
Trait Implementations
impl Clone for Server
[src]
fn clone(&self) -> Server
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more