[][src]Struct mobc::Connection

pub struct Connection<M: Manager> { /* fields omitted */ }

A smart pointer wrapping a connection.

Methods

impl<M: Manager> Connection<M>[src]

pub fn is_brand_new(&self) -> bool[src]

Returns true is the connection is newly established.

Trait Implementations

impl<M: Manager> Deref for Connection<M>[src]

type Target = M::Connection

The resulting type after dereferencing.

impl<M: Manager> DerefMut for Connection<M>[src]

impl<M: Manager> Drop for Connection<M>[src]

Auto Trait Implementations

impl<M> !RefUnwindSafe for Connection<M>

impl<M> Send for Connection<M> where
    <M as Manager>::Connection: Send,
    <M as Manager>::Error: Send

impl<M> Sync for Connection<M> where
    <M as Manager>::Connection: Send + Sync,
    <M as Manager>::Error: Send

impl<M> Unpin for Connection<M> where
    <M as Manager>::Connection: Unpin,
    <M as Manager>::Error: Unpin

impl<M> !UnwindSafe for Connection<M>

Blanket Implementations

impl<T, A, P> Access<T> for P where
    A: Access<T>,
    P: Deref<Target = A>, 
[src]

type Guard = <A as Access<T>>::Guard

A guard object containing the value and keeping it alive. Read more

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, A> DynAccess<T> for A where
    A: Access<T>,
    <A as Access<T>>::Guard: 'static, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.