[][src]Struct sqlx::Transaction

pub struct Transaction<T> where
    T: Connection
{ /* fields omitted */ }

Methods

impl<T> Transaction<T> where
    T: Connection
[src]

pub async fn begin(__arg0: Self) -> Result<Transaction<T>, Error>[src]

pub async fn commit(__arg0: Self) -> Result<T, Error>[src]

pub async fn rollback(__arg0: Self) -> Result<T, Error>[src]

Trait Implementations

impl<T> Deref for Transaction<T> where
    T: Connection
[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Transaction<T> where
    T: Connection
[src]

impl<T> Drop for Transaction<T> where
    T: Connection
[src]

impl<'c, DB, T> Executor for &'c mut Transaction<T> where
    DB: Database,
    T: Connection<Database = DB>, 
[src]

type Database = <T as Executor>::Database

The specific database that this type is implemented for.

impl<'e, DB, T> RefExecutor<'e> for &'e mut Transaction<T> where
    DB: Database,
    T: Connection<Database = DB>, 
[src]

type Database = DB

Auto Trait Implementations

impl<T> RefUnwindSafe for Transaction<T> where
    T: RefUnwindSafe

impl<T> Send for Transaction<T>

impl<T> Sync for Transaction<T> where
    T: Sync

impl<T> Unpin for Transaction<T> where
    T: Unpin

impl<T> UnwindSafe for Transaction<T> where
    T: UnwindSafe

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,