[][src]Struct mysql_async::Transaction

pub struct Transaction<'a>(_);

This struct represents MySql transaction.

Transaction is just a sugar for START TRANSACTION, ROLLBACK and COMMIT queries, so one should note that it is easy to mess things up calling this queries manually. Also you will get NestedTransaction error if you call transaction.start_transaction(_).

Methods

impl<'a> Transaction<'a>[src]

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

Performs COMMIT query.

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

Performs ROLLBACK query.

Trait Implementations

impl<'a> Debug for Transaction<'a>[src]

impl<'_> Drop for Transaction<'_>[src]

impl<'_> Queryable for Transaction<'_>[src]

impl<'a, 't> ToConnection<'a, 't> for &'a mut Transaction<'t>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Transaction<'a>

impl<'a> Send for Transaction<'a>

impl<'a> Sync for Transaction<'a>

impl<'a> Unpin for Transaction<'a>

impl<'a> !UnwindSafe for Transaction<'a>

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