Struct mysql::Opts [] [src]

pub struct Opts { /* fields omitted */ }

Mysql connection options.

Build one with OptsBuilder.

Methods

impl Opts
[src]

[src]

[src]

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

[src]

TCP port of mysql server (defaults to 3306).

[src]

Socket path on unix or pipe name on windows (defaults to None).

[src]

User (defaults to None).

[src]

Password (defaults to None).

[src]

Database name (defaults to None).

[src]

The timeout for each attempt to write to the server.

[src]

The timeout for each attempt to write to the server.

[src]

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.

Important traits for Vec<u8>
[src]

Commands to execute on each new database connection.

[src]

Only available if ssl feature enabled.

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

[src]

[src]

Whether TCP_NODELAY will be set for mysql connection.

[src]

TCP keep alive time for mysql connection.

[src]

Callback to handle requests for local files.

[src]

Tcp connect timeout (defaults to None).

[src]

Bind address for a client (defaults to None).

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

[src]

Number of prepared statements cached on the client side (per connection). Defaults to 10.

Trait Implementations

impl Clone for Opts
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Opts
[src]

impl PartialEq for Opts
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Opts
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Opts
[src]

[src]

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

impl From<OptsBuilder> for Opts
[src]

[src]

Performs the conversion.

impl<S: AsRef<str>> From<S> for Opts
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Opts

impl Sync for Opts