Struct mobc::Connection[][src]

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

A smart pointer wrapping a connection.

Implementations

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

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

Returns true is the connection is newly established.

pub fn into_inner(self) -> M::Connection[src]

Unwraps the raw database connection.

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>

impl<M> Sync for Connection<M> where
    <M as Manager>::Connection: Sync

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> 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> 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.