pub struct TxOpts { /* private fields */ }
Expand description
MySql transaction options.
Implementations§
Source§impl TxOpts
impl TxOpts
Sourcepub fn with_consistent_snapshot(&self) -> bool
pub fn with_consistent_snapshot(&self) -> bool
Returns the value of the characteristic.
Sourcepub fn access_mode(&self) -> Option<AccessMode>
pub fn access_mode(&self) -> Option<AccessMode>
Returns the access mode value.
Sourcepub fn isolation_level(&self) -> Option<IsolationLevel>
pub fn isolation_level(&self) -> Option<IsolationLevel>
Returns the isolation level value.
Sourcepub fn set_with_consistent_snapshot(self, val: bool) -> Self
pub fn set_with_consistent_snapshot(self, val: bool) -> Self
Turns on/off the WITH CONSISTENT SNAPSHOT
tx characteristic (defaults to false
).
Sourcepub fn set_access_mode(self, access_mode: Option<AccessMode>) -> Self
pub fn set_access_mode(self, access_mode: Option<AccessMode>) -> Self
Defines the transaction access mode (defaults to None
, i.e unspecified).
Sourcepub fn set_isolation_level(self, level: Option<IsolationLevel>) -> Self
pub fn set_isolation_level(self, level: Option<IsolationLevel>) -> Self
Defines the transaction isolation level (defaults to None
, i.e. unspecified).
Trait Implementations§
impl Copy for TxOpts
impl Eq for TxOpts
impl StructuralPartialEq for TxOpts
Auto Trait Implementations§
impl Freeze for TxOpts
impl RefUnwindSafe for TxOpts
impl Send for TxOpts
impl Sync for TxOpts
impl Unpin for TxOpts
impl UnwindSafe for TxOpts
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