[−][src]Type Definition mongodb::Client
type Client = Arc<ClientInner>;
Trait Implementations
impl ThreadedClient for Client[src]
impl ThreadedClient for Clientfn connect(host: &str, port: u16) -> Result<Client>[src]
fn connect(host: &str, port: u16) -> Result<Client>fn connect_with_options(
host: &str,
port: u16,
options: ClientOptions
) -> Result<Client>[src]
fn connect_with_options(
host: &str,
port: u16,
options: ClientOptions
) -> Result<Client>fn with_uri(uri: &str) -> Result<Client>[src]
fn with_uri(uri: &str) -> Result<Client>fn with_uri_and_options(uri: &str, options: ClientOptions) -> Result<Client>[src]
fn with_uri_and_options(uri: &str, options: ClientOptions) -> Result<Client>fn with_config(
config: ConnectionString,
options: Option<ClientOptions>,
description: Option<TopologyDescription>
) -> Result<Client>[src]
fn with_config(
config: ConnectionString,
options: Option<ClientOptions>,
description: Option<TopologyDescription>
) -> Result<Client>fn db(&self, db_name: &str) -> Database[src]
fn db(&self, db_name: &str) -> Databasefn db_with_prefs(
&self,
db_name: &str,
read_preference: Option<ReadPreference>,
write_concern: Option<WriteConcern>
) -> Database[src]
fn db_with_prefs(
&self,
db_name: &str,
read_preference: Option<ReadPreference>,
write_concern: Option<WriteConcern>
) -> Databasefn acquire_stream(
&self,
read_preference: ReadPreference
) -> Result<(PooledStream, bool, bool)>[src]
fn acquire_stream(
&self,
read_preference: ReadPreference
) -> Result<(PooledStream, bool, bool)>fn acquire_write_stream(&self) -> Result<PooledStream>[src]
fn acquire_write_stream(&self) -> Result<PooledStream>fn get_req_id(&self) -> i32[src]
fn get_req_id(&self) -> i32fn database_names(&self) -> Result<Vec<String>>[src]
fn database_names(&self) -> Result<Vec<String>>fn drop_database(&self, db_name: &str) -> Result<()>[src]
fn drop_database(&self, db_name: &str) -> Result<()>fn is_master(&self) -> Result<bool>[src]
fn is_master(&self) -> Result<bool>fn add_start_hook(
&mut self,
hook: fn(_: Client, _: &CommandStarted)
) -> Result<()>[src]
fn add_start_hook(
&mut self,
hook: fn(_: Client, _: &CommandStarted)
) -> Result<()>fn add_completion_hook(
&mut self,
hook: fn(_: Client, _: &CommandResult)
) -> Result<()>[src]
fn add_completion_hook(
&mut self,
hook: fn(_: Client, _: &CommandResult)
) -> Result<()>