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§
source§impl Clone for TransactionMode
impl Clone for TransactionMode
source§fn clone(&self) -> TransactionMode
fn clone(&self) -> TransactionMode
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 TransactionMode
impl Debug for TransactionMode
source§impl From<TransactionMode> for IdbTransactionMode
impl From<TransactionMode> for IdbTransactionMode
source§fn from(value: TransactionMode) -> Self
fn from(value: TransactionMode) -> Self
Converts to this type from the input type.
source§impl From<TransactionMode> for JsValue
impl From<TransactionMode> for JsValue
source§fn from(direction: TransactionMode) -> Self
fn from(direction: TransactionMode) -> Self
Converts to this type from the input type.
source§impl PartialEq for TransactionMode
impl PartialEq for TransactionMode
source§fn eq(&self, other: &TransactionMode) -> bool
fn eq(&self, other: &TransactionMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<IdbTransactionMode> for TransactionMode
impl TryFrom<IdbTransactionMode> for TransactionMode
source§impl 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§
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