pub struct TransactionOptions {
pub isolation_level: Option<IsolationLevel>,
pub access_mode: Option<AccessMode>,
pub sqlite_transaction_mode: Option<SqliteTransactionMode>,
}Expand description
Configuration for starting a transaction
Fieldsยง
ยงisolation_level: Option<IsolationLevel>Isolation level for the new transaction
access_mode: Option<AccessMode>Access mode for the new transaction
sqlite_transaction_mode: Option<SqliteTransactionMode>Transaction mode (deferred, immediate, exclusive) for the new transaction. Supported only by SQLite.
Trait Implementationsยง
Sourceยงimpl Clone for TransactionOptions
impl Clone for TransactionOptions
Sourceยงfn clone(&self) -> TransactionOptions
fn clone(&self) -> TransactionOptions
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSourceยงimpl Debug for TransactionOptions
impl Debug for TransactionOptions
Sourceยงimpl Default for TransactionOptions
impl Default for TransactionOptions
Sourceยงfn default() -> TransactionOptions
fn default() -> TransactionOptions
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl PartialEq for TransactionOptions
impl PartialEq for TransactionOptions
impl Copy for TransactionOptions
impl Eq for TransactionOptions
impl StructuralPartialEq for TransactionOptions
Auto Trait Implementationsยง
impl Freeze for TransactionOptions
impl RefUnwindSafe for TransactionOptions
impl Send for TransactionOptions
impl Sync for TransactionOptions
impl Unpin for TransactionOptions
impl UnsafeUnpin for TransactionOptions
impl UnwindSafe for TransactionOptions
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more