Struct reql::command::ConnectOpts
[−]
[src]
pub struct ConnectOpts { /* fields omitted */ }
Connection Options
Implements methods for configuring details to connect to database servers.
Methods
impl ConnectOpts
[src]
fn set_servers(self, servers: Vec<&'static str>) -> ConnectOpts
Sets servers
fn set_db(self, db: &'static str) -> ConnectOpts
Sets database
fn set_user(self, user: &'static str) -> ConnectOpts
Sets username
fn set_password(self, password: &'static str) -> ConnectOpts
Sets password
fn set_retries(self, retries: u8) -> ConnectOpts
Sets retries
fn connect(self) -> Result<()>
Creates a connection pool
Trait Implementations
impl Debug for ConnectOpts
[src]
impl Clone for ConnectOpts
[src]
fn clone(&self) -> ConnectOpts
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
impl Default for ConnectOpts
[src]
fn default() -> ConnectOpts
Returns the "default value" for a type. Read more