Struct mysql_async::Opts
[−]
[src]
pub struct Opts { /* fields omitted */ }
Mysql connection options.
Build one with OptsBuilder
.
Methods
impl Opts
[src]
fn from_url(url: &str) -> Result<Opts>
[src]
fn get_ip_or_hostname(&self) -> &str
[src]
Address of mysql server (defaults to 127.0.0.1
). Hostnames should also work.
fn get_tcp_port(&self) -> u16
[src]
TCP port of mysql server (defaults to 3306
).
fn get_user(&self) -> Option<&String>
[src]
User (defaults to None
).
fn get_pass(&self) -> Option<&String>
[src]
Password (defaults to None
).
fn get_db_name(&self) -> Option<&String>
[src]
Database name (defaults to None
).
fn get_init(&self) -> &[String]
[src]
Commands to execute on each new database connection.
fn get_tcp_keepalive(&self) -> Option<u32>
[src]
TCP keep alive timeout in milliseconds (defaults to `None).
fn get_local_infile_handler(&self) -> Option<Arc<LocalInfileHandler>>
[src]
Local infile handler
fn get_pool_min(&self) -> usize
[src]
Lower bound of opened connections for Pool
(defaults to 10).
fn get_pool_max(&self) -> usize
[src]
Upper bound of opened connections for Pool
(defaults to 100).
fn get_conn_ttl(&self) -> Option<u32>
[src]
Pool will close connection if time since last IO exceeds this value
(defaults to wait_timeout
).
fn get_stmt_cache_size(&self) -> usize
[src]
Number of prepared statements cached on the client side (per connection). Defaults to 10
.
fn get_ssl_opts(&self) -> Option<&SslOpts>
[src]
Driver will require SSL connection if this option isn't None
(default to None
).
This option requires ssl
feature to work.
Trait Implementations
impl Clone for Opts
[src]
fn clone(&self) -> Opts
[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
impl Eq for Opts
[src]
impl PartialEq for Opts
[src]
fn eq(&self, __arg_0: &Opts) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Opts) -> bool
[src]
This method tests for !=
.
impl Debug for Opts
[src]
impl Default for Opts
[src]
impl From<OptsBuilder> for Opts
[src]
fn from(builder: OptsBuilder) -> Opts
[src]
Performs the conversion.