Struct mysql::Opts [] [src]

pub struct Opts {
    // some 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).

Path to unix socket of mysql server (defaults to None).

User (defaults to None).

Password (defaults to None).

Database name (defaults to None).

The timeout for each attempt to write to the server.

The timeout for each attempt to write to the server.

Prefer socket connection (defaults to true).

Will reconnect via socket after TCP connection to 127.0.0.1 if true.

Commands to execute on each new database connection.

Only available if ssl feature enabled.

Perform or not ssl peer verification (defaults to false). Only make sense if ssl_opts is not None.

Only available if ssl feature enabled.

SSL certificates and keys in pem format. If not None, then ssl connection implied.

Option<(ca_cert, Option<(client_cert, client_key)>)>.

Callback to handle requests for local files.

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<'a> From<&'a str> for Opts
[src]

Performs the conversion.