pub enum TransactionMode {
ReadOnly,
ReadWrite,
VersionChange,
}Expand description
Specifies the transaction mode.
Variants§
ReadOnly
The transaction is only allowed to read data.
ReadWrite
The transaction is allowed to read, modify and delete data from existing object stores.
VersionChange
The transaction is allowed to read, modify and delete data from existing object stores, and can also create and
remove object stores and indexes. This type of transaction can’t be manually created, but instead is created
automatically when an upgradeneeded event is fired.
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransactionMode
Source§impl Debug for TransactionMode
impl Debug for TransactionMode
impl Eq for TransactionMode
Source§impl PartialEq for TransactionMode
impl PartialEq for TransactionMode
impl StructuralPartialEq for TransactionMode
Source§impl TryFrom<IdbTransactionMode> for TransactionMode
impl TryFrom<IdbTransactionMode> for TransactionMode
Source§fn try_from(
value: IdbTransactionMode,
) -> Result<TransactionMode, <TransactionMode as TryFrom<IdbTransactionMode>>::Error>
fn try_from( value: IdbTransactionMode, ) -> Result<TransactionMode, <TransactionMode as TryFrom<IdbTransactionMode>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TransactionMode
impl RefUnwindSafe for TransactionMode
impl Send for TransactionMode
impl Sync for TransactionMode
impl Unpin for TransactionMode
impl UnsafeUnpin for TransactionMode
impl UnwindSafe for TransactionMode
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.