Struct mysql_async::Pool [−][src]
pub struct Pool { /* fields omitted */ }Asynchronous pool of MySql connections.
Methods
impl Pool[src]
impl Poolpub fn new<O: Into<Opts>>(opts: O) -> Pool[src]
pub fn new<O: Into<Opts>>(opts: O) -> PoolCreates new pool of connections.
pub fn get_conn(&self) -> GetConn[src]
pub fn get_conn(&self) -> GetConnReturns future that resolves to Conn.
pub fn start_transaction(
&self,
options: TransactionOptions
) -> impl MyFuture<Transaction<Conn>>[src]
pub fn start_transaction(
&self,
options: TransactionOptions
) -> impl MyFuture<Transaction<Conn>>Shortcut for get_conn followed by start_transaction.
pub fn disconnect(self) -> DisconnectPool[src]
pub fn disconnect(self) -> DisconnectPoolReturns future that disconnects this pool from server and resolves to ().
Active connections taken from this pool should be disconnected manually.
Also all pending and new GetConn's will resolve to error.
Trait Implementations
impl Clone for Pool[src]
impl Clone for Poolfn clone(&self) -> Pool[src]
fn clone(&self) -> PoolReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Pool[src]
impl Debug for Pool