Struct web_sys::IdbObjectStore [−][src]
#[repr(transparent)]pub struct IdbObjectStore { /* fields omitted */ }
Expand description
The IdbObjectStore
class.
This API requires the following crate features to be activated: IdbObjectStore
Implementations
Getter for the name
field of this object.
This API requires the following crate features to be activated: IdbObjectStore
Setter for the name
field of this object.
This API requires the following crate features to be activated: IdbObjectStore
Getter for the indexNames
field of this object.
This API requires the following crate features to be activated: DomStringList
, IdbObjectStore
Getter for the transaction
field of this object.
This API requires the following crate features to be activated: IdbObjectStore
, IdbTransaction
Getter for the autoIncrement
field of this object.
This API requires the following crate features to be activated: IdbObjectStore
The add()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The add()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The clear()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The count()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The count()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The createIndex()
method.
This API requires the following crate features to be activated: IdbIndex
, IdbObjectStore
The createIndex()
method.
This API requires the following crate features to be activated: IdbIndex
, IdbObjectStore
pub fn create_index_with_str_and_optional_parameters(
&self,
name: &str,
key_path: &str,
optional_parameters: &IdbIndexParameters
) -> Result<IdbIndex, JsValue>
pub fn create_index_with_str_and_optional_parameters(
&self,
name: &str,
key_path: &str,
optional_parameters: &IdbIndexParameters
) -> Result<IdbIndex, JsValue>
The createIndex()
method.
This API requires the following crate features to be activated: IdbIndex
, IdbIndexParameters
, IdbObjectStore
pub fn create_index_with_str_sequence_and_optional_parameters(
&self,
name: &str,
key_path: &JsValue,
optional_parameters: &IdbIndexParameters
) -> Result<IdbIndex, JsValue>
pub fn create_index_with_str_sequence_and_optional_parameters(
&self,
name: &str,
key_path: &JsValue,
optional_parameters: &IdbIndexParameters
) -> Result<IdbIndex, JsValue>
The createIndex()
method.
This API requires the following crate features to be activated: IdbIndex
, IdbIndexParameters
, IdbObjectStore
The delete()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The deleteIndex()
method.
This API requires the following crate features to be activated: IdbObjectStore
The get()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The getAll()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The getAll()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
pub fn get_all_with_key_and_limit(
&self,
key: &JsValue,
limit: u32
) -> Result<IdbRequest, JsValue>
pub fn get_all_with_key_and_limit(
&self,
key: &JsValue,
limit: u32
) -> Result<IdbRequest, JsValue>
The getAll()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The getAllKeys()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The getAllKeys()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
pub fn get_all_keys_with_key_and_limit(
&self,
key: &JsValue,
limit: u32
) -> Result<IdbRequest, JsValue>
pub fn get_all_keys_with_key_and_limit(
&self,
key: &JsValue,
limit: u32
) -> Result<IdbRequest, JsValue>
The getAllKeys()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The getKey()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The openCursor()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The openCursor()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
pub fn open_cursor_with_range_and_direction(
&self,
range: &JsValue,
direction: IdbCursorDirection
) -> Result<IdbRequest, JsValue>
pub fn open_cursor_with_range_and_direction(
&self,
range: &JsValue,
direction: IdbCursorDirection
) -> Result<IdbRequest, JsValue>
The openCursor()
method.
This API requires the following crate features to be activated: IdbCursorDirection
, IdbObjectStore
, IdbRequest
The openKeyCursor()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The openKeyCursor()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
pub fn open_key_cursor_with_range_and_direction(
&self,
range: &JsValue,
direction: IdbCursorDirection
) -> Result<IdbRequest, JsValue>
pub fn open_key_cursor_with_range_and_direction(
&self,
range: &JsValue,
direction: IdbCursorDirection
) -> Result<IdbRequest, JsValue>
The openKeyCursor()
method.
This API requires the following crate features to be activated: IdbCursorDirection
, IdbObjectStore
, IdbRequest
The put()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
The put()
method.
This API requires the following crate features to be activated: IdbObjectStore
, IdbRequest
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs a dynamic instanceof
check to see whether the JsValue
provided is an instance of this type. Read more
Performs a zero-cost unchecked conversion from a JsValue
into an
instance of Self
Read more
Performs a zero-cost unchecked conversion from a &JsValue
into an
instance of &Self
. Read more
Test whether this JS value has a type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a dynamic cast (checked at runtime) of this value into the
target type T
. Read more
Performs a zero-cost unchecked cast into the specified type. Read more
Performs a zero-cost unchecked cast into a reference to the specified type. Read more
Test whether this JS value is an instance of the type T
. Read more
Performs a dynamic check to see whether the JsValue
provided
is a value of this type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
The wasm ABI type references to Self
are recovered from.
type Anchor = ManuallyDrop<IdbObjectStore>
type Anchor = ManuallyDrop<IdbObjectStore>
The type that holds the reference to 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 more
Recover a Self::Anchor
from Self::Abi
. Read more
Auto Trait Implementations
impl RefUnwindSafe for IdbObjectStore
impl !Send for IdbObjectStore
impl !Sync for IdbObjectStore
impl Unpin for IdbObjectStore
impl UnwindSafe for IdbObjectStore
Blanket Implementations
Mutably borrows from an owned value. Read more
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more