Enum idb_sys::TransactionMode
source · [−]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
sourceimpl Clone for TransactionMode
impl Clone for TransactionMode
sourcefn clone(&self) -> TransactionMode
fn clone(&self) -> TransactionMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TransactionMode
impl Debug for TransactionMode
sourceimpl From<TransactionMode> for IdbTransactionMode
impl From<TransactionMode> for IdbTransactionMode
sourcefn from(value: TransactionMode) -> Self
fn from(value: TransactionMode) -> Self
Converts to this type from the input type.
sourceimpl From<TransactionMode> for JsValue
impl From<TransactionMode> for JsValue
sourcefn from(direction: TransactionMode) -> Self
fn from(direction: TransactionMode) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TransactionMode> for TransactionMode
impl PartialEq<TransactionMode> for TransactionMode
sourcefn eq(&self, other: &TransactionMode) -> bool
fn eq(&self, other: &TransactionMode) -> bool
sourceimpl TryFrom<IdbTransactionMode> for TransactionMode
impl TryFrom<IdbTransactionMode> for TransactionMode
sourceimpl TryFrom<JsValue> for TransactionMode
impl TryFrom<JsValue> for TransactionMode
impl Copy for TransactionMode
impl Eq for TransactionMode
impl StructuralEq for TransactionMode
impl StructuralPartialEq for TransactionMode
Auto Trait Implementations
impl RefUnwindSafe for TransactionMode
impl Send for TransactionMode
impl Sync for TransactionMode
impl Unpin for TransactionMode
impl UnwindSafe for TransactionMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more