pub struct ConcurrentTransactionOptions {
pub mode: ConcurrentTransactionMode,
pub lock_timeout: Duration,
pub isolation: TransactionIsolation,
pub read_dependency_limits: TransactionReadDependencyLimits,
}Fields§
§mode: ConcurrentTransactionMode§lock_timeout: Duration§isolation: TransactionIsolation§read_dependency_limits: TransactionReadDependencyLimitsImplementations§
Source§impl ConcurrentTransactionOptions
impl ConcurrentTransactionOptions
pub const fn with_isolation(self, isolation: TransactionIsolation) -> Self
pub const fn optimistic() -> Self
pub const fn pessimistic(lock_timeout: Duration) -> Self
Trait Implementations§
Source§impl Clone for ConcurrentTransactionOptions
impl Clone for ConcurrentTransactionOptions
impl Copy for ConcurrentTransactionOptions
Source§impl Debug for ConcurrentTransactionOptions
impl Debug for ConcurrentTransactionOptions
impl Eq for ConcurrentTransactionOptions
impl StructuralPartialEq for ConcurrentTransactionOptions
Auto Trait Implementations§
impl Forget for ConcurrentTransactionOptions
impl Freeze for ConcurrentTransactionOptions
impl Move for ConcurrentTransactionOptions
impl RefUnwindSafe for ConcurrentTransactionOptions
impl Send for ConcurrentTransactionOptions
impl Sync for ConcurrentTransactionOptions
impl Unpin for ConcurrentTransactionOptions
impl UnsafeUnpin for ConcurrentTransactionOptions
impl UnwindSafe for ConcurrentTransactionOptions
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<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