struct IndexedDBEnvironment<E: KvsEngine> {
engine: E,
transactions: HashMap<u64, KvsTransaction>,
serial_number_counter: u64,
}
Fields§
§engine: E
§transactions: HashMap<u64, KvsTransaction>
§serial_number_counter: u64
Implementations§
Source§impl<E: KvsEngine> IndexedDBEnvironment<E>
impl<E: KvsEngine> IndexedDBEnvironment<E>
fn new(engine: E) -> IndexedDBEnvironment<E>
fn queue_operation( &mut self, store_name: &str, serial_number: u64, mode: IndexedDBTxnMode, operation: AsyncOperation, )
fn start_transaction( &mut self, txn: u64, sender: Option<IpcSender<BackendResult<()>>>, )
fn has_key_generator(&self, store_name: &str) -> bool
fn key_path(&self, store_name: &str) -> Option<KeyPath>
fn create_index( &self, store_name: &str, index_name: String, key_path: KeyPath, unique: bool, multi_entry: bool, ) -> DbResult<CreateObjectResult>
fn delete_index(&self, store_name: &str, index_name: String) -> DbResult<()>
fn create_object_store( &mut self, store_name: &str, key_path: Option<KeyPath>, auto_increment: bool, ) -> DbResult<CreateObjectResult>
fn delete_object_store(&mut self, store_name: &str) -> DbResult<()>
fn delete_database(self, sender: IpcSender<BackendResult<()>>)
fn version(&self) -> DbResult<u64>
fn set_version(&mut self, version: u64) -> DbResult<()>
Auto Trait Implementations§
impl<E> Freeze for IndexedDBEnvironment<E>where
E: Freeze,
impl<E> !RefUnwindSafe for IndexedDBEnvironment<E>
impl<E> Send for IndexedDBEnvironment<E>where
E: Send,
impl<E> !Sync for IndexedDBEnvironment<E>
impl<E> Unpin for IndexedDBEnvironment<E>where
E: Unpin,
impl<E> UnwindSafe for IndexedDBEnvironment<E>where
E: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert