Struct idb_sys::StoreRequest
source · [−]pub struct StoreRequest { /* private fields */ }Expand description
Request returned when performing operations on an ObjectStore.
Trait Implementations
sourceimpl Debug for StoreRequest
impl Debug for StoreRequest
sourceimpl From<IdbRequest> for StoreRequest
impl From<IdbRequest> for StoreRequest
sourcefn from(inner: IdbRequest) -> Self
fn from(inner: IdbRequest) -> Self
Converts to this type from the input type.
sourceimpl From<StoreRequest> for IdbRequest
impl From<StoreRequest> for IdbRequest
sourcefn from(request: StoreRequest) -> Self
fn from(request: StoreRequest) -> Self
Converts to this type from the input type.
sourceimpl From<StoreRequest> for JsValue
impl From<StoreRequest> for JsValue
sourcefn from(value: StoreRequest) -> Self
fn from(value: StoreRequest) -> Self
Converts to this type from the input type.
sourceimpl Request for StoreRequest
impl Request for StoreRequest
sourcefn source(&self) -> Result<Object, Error>
fn source(&self) -> Result<Object, Error>
Returns the ObjectStore, Index, or Cursor the request was made against, or null if it was an open
request. Read more
sourcefn transaction(&self) -> Option<Transaction>
fn transaction(&self) -> Option<Transaction>
Returns the Transaction the request was made within. If this as an open request, then it returns an upgrade
transaction while it is running, or None otherwise. Read more
sourcefn ready_state(&self) -> Result<RequestReadyState, Error>
fn ready_state(&self) -> Result<RequestReadyState, Error>
Returns RequestReadyState::Pending until a request is complete, then returns RequestReadyState::Done.
sourcefn on_success<F>(&mut self, callback: F) where
F: FnOnce(Event) + 'static,
fn on_success<F>(&mut self, callback: F) where
F: FnOnce(Event) + 'static,
Adds an event handler for success event.
sourceimpl TryFrom<EventTarget> for StoreRequest
impl TryFrom<EventTarget> for StoreRequest
Auto Trait Implementations
impl !RefUnwindSafe for StoreRequest
impl !Send for StoreRequest
impl !Sync for StoreRequest
impl Unpin for StoreRequest
impl !UnwindSafe for StoreRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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