Struct web_sys::IdbTransaction
source · #[repr(transparent)]pub struct IdbTransaction { /* private fields */ }
Expand description
The IDBTransaction
object
This API requires the following crate features to be activated: IdbTransaction
Implementations§
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn object_store(&self, name: &str) -> Result<IdbObjectStore, JsValue>
pub fn object_store(&self, name: &str) -> Result<IdbObjectStore, JsValue>
The objectStore()
method
This API requires the following crate features to be activated: IdbObjectStore
, IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn mode(&self) -> Result<IdbTransactionMode, JsValue>
pub fn mode(&self) -> Result<IdbTransactionMode, JsValue>
The mode
getter
This API requires the following crate features to be activated: IdbTransaction
, IdbTransactionMode
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn db(&self) -> IdbDatabase
pub fn db(&self) -> IdbDatabase
The db
getter
This API requires the following crate features to be activated: IdbDatabase
, IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn error(&self) -> Option<DomException>
pub fn error(&self) -> Option<DomException>
The error
getter
This API requires the following crate features to be activated: DomException
, IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn set_onabort(&self, onabort: Option<&Function>)
pub fn set_onabort(&self, onabort: Option<&Function>)
The onabort
setter
This API requires the following crate features to be activated: IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn oncomplete(&self) -> Option<Function>
pub fn oncomplete(&self) -> Option<Function>
The oncomplete
getter
This API requires the following crate features to be activated: IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn set_oncomplete(&self, oncomplete: Option<&Function>)
pub fn set_oncomplete(&self, oncomplete: Option<&Function>)
The oncomplete
setter
This API requires the following crate features to be activated: IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn set_onerror(&self, onerror: Option<&Function>)
pub fn set_onerror(&self, onerror: Option<&Function>)
The onerror
setter
This API requires the following crate features to be activated: IdbTransaction
source§impl IdbTransaction
impl IdbTransaction
sourcepub fn object_store_names(&self) -> DomStringList
pub fn object_store_names(&self) -> DomStringList
The objectStoreNames
getter
This API requires the following crate features to be activated: DomStringList
, IdbTransaction
Trait Implementations§
source§impl AsRef<EventTarget> for IdbTransaction
impl AsRef<EventTarget> for IdbTransaction
source§fn as_ref(&self) -> &EventTarget
fn as_ref(&self) -> &EventTarget
source§impl AsRef<JsValue> for IdbTransaction
impl AsRef<JsValue> for IdbTransaction
source§impl AsRef<Object> for IdbTransaction
impl AsRef<Object> for IdbTransaction
source§impl Clone for IdbTransaction
impl Clone for IdbTransaction
source§fn clone(&self) -> IdbTransaction
fn clone(&self) -> IdbTransaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IdbTransaction
impl Debug for IdbTransaction
source§impl From<IdbTransaction> for EventTarget
impl From<IdbTransaction> for EventTarget
source§fn from(obj: IdbTransaction) -> EventTarget
fn from(obj: IdbTransaction) -> EventTarget
source§impl From<IdbTransaction> for JsValue
impl From<IdbTransaction> for JsValue
source§fn from(obj: IdbTransaction) -> JsValue
fn from(obj: IdbTransaction) -> JsValue
source§impl From<IdbTransaction> for Object
impl From<IdbTransaction> for Object
source§fn from(obj: IdbTransaction) -> Object
fn from(obj: IdbTransaction) -> Object
source§impl From<JsValue> for IdbTransaction
impl From<JsValue> for IdbTransaction
source§fn from(obj: JsValue) -> IdbTransaction
fn from(obj: JsValue) -> IdbTransaction
source§impl FromWasmAbi for IdbTransaction
impl FromWasmAbi for IdbTransaction
source§impl<'a> IntoWasmAbi for &'a IdbTransaction
impl<'a> IntoWasmAbi for &'a IdbTransaction
source§impl IntoWasmAbi for IdbTransaction
impl IntoWasmAbi for IdbTransaction
source§impl JsCast for IdbTransaction
impl JsCast for IdbTransaction
source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> Self
fn unchecked_from_js(val: JsValue) -> Self
source§fn unchecked_from_js_ref(val: &JsValue) -> &Self
fn unchecked_from_js_ref(val: &JsValue) -> &Self
source§fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
fn is_instance_of<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§impl OptionFromWasmAbi for IdbTransaction
impl OptionFromWasmAbi for IdbTransaction
source§impl<'a> OptionIntoWasmAbi for &'a IdbTransaction
impl<'a> OptionIntoWasmAbi for &'a IdbTransaction
source§impl OptionIntoWasmAbi for IdbTransaction
impl OptionIntoWasmAbi for IdbTransaction
source§impl RefFromWasmAbi for IdbTransaction
impl RefFromWasmAbi for IdbTransaction
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<IdbTransaction>
type Anchor = ManuallyDrop<IdbTransaction>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous. Read moreAuto Trait Implementations§
impl RefUnwindSafe for IdbTransaction
impl !Send for IdbTransaction
impl !Sync for IdbTransaction
impl Unpin for IdbTransaction
impl UnwindSafe for IdbTransaction
Blanket Implementations§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more