pub enum TransactionMode {
ReadOnly,
ReadWrite,
Exclusive,
}Expand description
Transaction mode
Variants§
ReadOnly
Read-only transaction - no writes allowed
ReadWrite
Read-write transaction - can read and write
Exclusive
Exclusive transaction - no concurrent access
Implementations§
Source§impl TransactionMode
impl TransactionMode
Sourcepub fn allows_writes(&self) -> bool
pub fn allows_writes(&self) -> bool
Check if mode allows writes
Sourcepub fn is_exclusive(&self) -> bool
pub fn is_exclusive(&self) -> bool
Check if mode is exclusive
Trait Implementations§
Source§impl Clone for TransactionMode
impl Clone for TransactionMode
Source§fn clone(&self) -> TransactionMode
fn clone(&self) -> TransactionMode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionMode
impl Debug for TransactionMode
Source§impl PartialEq for TransactionMode
impl PartialEq for TransactionMode
impl Copy for TransactionMode
impl Eq for TransactionMode
impl StructuralPartialEq for TransactionMode
Auto Trait Implementations§
impl Freeze for TransactionMode
impl RefUnwindSafe for TransactionMode
impl Send for TransactionMode
impl Sync for TransactionMode
impl Unpin for TransactionMode
impl UnwindSafe for TransactionMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)