Struct mysql_async::TransactionOptions
source · pub struct TransactionOptions { /* private fields */ }
Expand description
Options for transaction
Implementations§
source§impl TransactionOptions
impl TransactionOptions
pub fn new() -> TransactionOptions
pub fn set_consistent_snapshot(&mut self, value: bool) -> &mut Self
pub fn set_isolation_level<T>(&mut self, value: T) -> &mut Selfwhere
T: Into<Option<IsolationLevel>>,
pub fn set_readonly<T>(&mut self, value: T) -> &mut Selfwhere
T: Into<Option<bool>>,
pub fn consistent_snapshot(&self) -> bool
pub fn isolation_level(&self) -> Option<IsolationLevel>
pub fn readonly(&self) -> Option<bool>
Trait Implementations§
source§impl Clone for TransactionOptions
impl Clone for TransactionOptions
source§fn clone(&self) -> TransactionOptions
fn clone(&self) -> TransactionOptions
Returns a copy 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