Struct mysql_async::Opts [] [src]

pub struct Opts { /* fields omitted */ }

Mysql connection options.

Build one with OptsBuilder.

Methods

impl Opts
[src]

Address of mysql server (defaults to 127.0.0.1). Hostnames should also work.

TCP port of mysql server (defaults to 3306).

User (defaults to None).

Password (defaults to None).

Database name (defaults to None).

Commands to execute on each new database connection.

TCP keep alive timeout in milliseconds (defaults to `None).

Local infile handler

Lower bound of opened connections for Pool (defaults to 10).

Upper bound of opened connections for Pool (defaults to 100).

Pool will close connection if time since last IO exceeds this value (defaults to wait_timeout).

Trait Implementations

impl Clone for Opts
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Opts
[src]

impl PartialEq for Opts
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for Opts
[src]

Formats the value using the given formatter.

impl Default for Opts
[src]

Returns the "default value" for a type. Read more

impl From<OptsBuilder> for Opts
[src]

Performs the conversion.

impl<T: AsRef<str> + Sized> From<T> for Opts
[src]

Performs the conversion.