[][src]Struct mysql::TxOpts

pub struct TxOpts { /* fields omitted */ }

MySql transaction options.

Methods

impl TxOpts[src]

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

Returns the value of the characteristic.

pub fn access_mode(&self) -> Option<AccessMode>[src]

Returns the access mode value.

pub fn isolation_level(&self) -> Option<IsolationLevel>[src]

Returns the isolation level value.

pub fn set_with_consistent_snapshot(self, val: bool) -> Self[src]

Turns on/off the WITH CONSISTENT SNAPSHOT tx characteristic (defaults to false).

pub fn set_access_mode(self, access_mode: Option<AccessMode>) -> Self[src]

Defines the transaction access mode (defaults to None, i.e unspecified).

pub fn set_isolation_level(self, level: Option<IsolationLevel>) -> Self[src]

Defines the transaction isolation level (defaults to None, i.e. unspecified).

Trait Implementations

impl Clone for TxOpts[src]

impl Copy for TxOpts[src]

impl Debug for TxOpts[src]

impl Default for TxOpts[src]

impl Eq for TxOpts[src]

impl PartialEq<TxOpts> for TxOpts[src]

impl StructuralEq for TxOpts[src]

impl StructuralPartialEq for TxOpts[src]

Auto Trait Implementations

impl RefUnwindSafe for TxOpts

impl Send for TxOpts

impl Sync for TxOpts

impl Unpin for TxOpts

impl UnwindSafe for TxOpts

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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