Struct mon::client::Client
[−]
[src]
pub struct Client { pub inner: Arc<ClientInner>, }
Fields
inner: Arc<ClientInner>
Methods
impl Client
[src]
fn connect(host: &str, port: u16) -> Result<Client>
[src]
fn connect_with_options(
host: &str,
port: u16,
options: ClientOptions
) -> Result<Client>
[src]
host: &str,
port: u16,
options: ClientOptions
) -> Result<Client>
fn with_uri(uri: &str) -> Result<Client>
[src]
fn with_uri_and_options(uri: &str, options: ClientOptions) -> Result<Client>
[src]
fn with_config(
config: ConnectionString,
options: Option<ClientOptions>,
description: Option<TopologyDescription>
) -> Result<Client>
[src]
config: ConnectionString,
options: Option<ClientOptions>,
description: Option<TopologyDescription>
) -> Result<Client>
fn get_req_id(&self) -> i32
[src]
fn acquire_stream(
&self,
read_preference: ReadPreference
) -> Result<(PooledStream, bool, bool)>
[src]
&self,
read_preference: ReadPreference
) -> Result<(PooledStream, bool, bool)>
fn acquire_write_stream(&self) -> Result<PooledStream>
[src]
fn db(&self, db_name: &str) -> Database
[src]
fn database_names(&self) -> Result<Vec<String>>
[src]
Trait Implementations
impl Clone for Client
[src]
fn clone(&self) -> Client
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more