Struct mysql::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).

Socket path on unix or pipe name on windows (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 (or named pipe on windows) 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.

TCP keep alive time for mysql connection.

Callback to handle requests for local files.

Tcp connect timeout (defaults to None).

Bind address for a client (defaults to None).

Use carefully. Will probably make pool unusable because of address already in use errors.

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.