Struct web_sys::StorageEvent
source · #[repr(transparent)]pub struct StorageEvent { /* private fields */ }
Expand description
The StorageEvent
object
This API requires the following crate features to be activated: StorageEvent
Implementations§
source§impl StorageEvent
impl StorageEvent
source§impl StorageEvent
impl StorageEvent
sourcepub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &StorageEventInit
) -> Result<StorageEvent, JsValue>
pub fn new_with_event_init_dict(
type_: &str,
event_init_dict: &StorageEventInit
) -> Result<StorageEvent, JsValue>
The new StorageEvent(..)
constructor, creating a new instance of StorageEvent
This API requires the following crate features to be activated: StorageEvent
, StorageEventInit
source§impl StorageEvent
impl StorageEvent
sourcepub fn init_storage_event(&self, type_: &str)
pub fn init_storage_event(&self, type_: &str)
The initStorageEvent()
method
This API requires the following crate features to be activated: StorageEvent
source§impl StorageEvent
impl StorageEvent
sourcepub fn init_storage_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
pub fn init_storage_event_with_can_bubble(&self, type_: &str, can_bubble: bool)
The initStorageEvent()
method
This API requires the following crate features to be activated: StorageEvent
source§impl StorageEvent
impl StorageEvent
sourcepub fn init_storage_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
pub fn init_storage_event_with_can_bubble_and_cancelable(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool
)
The initStorageEvent()
method
This API requires the following crate features to be activated: StorageEvent
source§impl StorageEvent
impl StorageEvent
source§impl StorageEvent
impl StorageEvent
source§impl StorageEvent
impl StorageEvent
sourcepub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
key: Option<&str>,
old_value: Option<&str>,
new_value: Option<&str>
)
pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
key: Option<&str>,
old_value: Option<&str>,
new_value: Option<&str>
)
The initStorageEvent()
method
This API requires the following crate features to be activated: StorageEvent
source§impl StorageEvent
impl StorageEvent
sourcepub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
key: Option<&str>,
old_value: Option<&str>,
new_value: Option<&str>,
url: Option<&str>
)
pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
key: Option<&str>,
old_value: Option<&str>,
new_value: Option<&str>,
url: Option<&str>
)
The initStorageEvent()
method
This API requires the following crate features to be activated: StorageEvent
source§impl StorageEvent
impl StorageEvent
sourcepub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url_and_storage_area(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
key: Option<&str>,
old_value: Option<&str>,
new_value: Option<&str>,
url: Option<&str>,
storage_area: Option<&Storage>
)
pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url_and_storage_area(
&self,
type_: &str,
can_bubble: bool,
cancelable: bool,
key: Option<&str>,
old_value: Option<&str>,
new_value: Option<&str>,
url: Option<&str>,
storage_area: Option<&Storage>
)
The initStorageEvent()
method
This API requires the following crate features to be activated: Storage
, StorageEvent
source§impl StorageEvent
impl StorageEvent
source§impl StorageEvent
impl StorageEvent
source§impl StorageEvent
impl StorageEvent
source§impl StorageEvent
impl StorageEvent
source§impl StorageEvent
impl StorageEvent
sourcepub fn storage_area(&self) -> Option<Storage>
pub fn storage_area(&self) -> Option<Storage>
The storageArea
getter
This API requires the following crate features to be activated: Storage
, StorageEvent
Trait Implementations§
source§impl AsRef<Event> for StorageEvent
impl AsRef<Event> for StorageEvent
source§impl AsRef<JsValue> for StorageEvent
impl AsRef<JsValue> for StorageEvent
source§impl AsRef<Object> for StorageEvent
impl AsRef<Object> for StorageEvent
source§impl Clone for StorageEvent
impl Clone for StorageEvent
source§fn clone(&self) -> StorageEvent
fn clone(&self) -> StorageEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StorageEvent
impl Debug for StorageEvent
source§impl From<JsValue> for StorageEvent
impl From<JsValue> for StorageEvent
source§fn from(obj: JsValue) -> StorageEvent
fn from(obj: JsValue) -> StorageEvent
source§impl From<StorageEvent> for Event
impl From<StorageEvent> for Event
source§fn from(obj: StorageEvent) -> Event
fn from(obj: StorageEvent) -> Event
source§impl From<StorageEvent> for JsValue
impl From<StorageEvent> for JsValue
source§fn from(obj: StorageEvent) -> JsValue
fn from(obj: StorageEvent) -> JsValue
source§impl From<StorageEvent> for Object
impl From<StorageEvent> for Object
source§fn from(obj: StorageEvent) -> Object
fn from(obj: StorageEvent) -> Object
source§impl FromWasmAbi for StorageEvent
impl FromWasmAbi for StorageEvent
source§impl<'a> IntoWasmAbi for &'a StorageEvent
impl<'a> IntoWasmAbi for &'a StorageEvent
source§impl IntoWasmAbi for StorageEvent
impl IntoWasmAbi for StorageEvent
source§impl JsCast for StorageEvent
impl JsCast for StorageEvent
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 StorageEvent
impl OptionFromWasmAbi for StorageEvent
source§impl<'a> OptionIntoWasmAbi for &'a StorageEvent
impl<'a> OptionIntoWasmAbi for &'a StorageEvent
source§impl OptionIntoWasmAbi for StorageEvent
impl OptionIntoWasmAbi for StorageEvent
source§impl RefFromWasmAbi for StorageEvent
impl RefFromWasmAbi for StorageEvent
§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self
are recovered from.§type Anchor = ManuallyDrop<StorageEvent>
type Anchor = ManuallyDrop<StorageEvent>
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 StorageEvent
impl !Send for StorageEvent
impl !Sync for StorageEvent
impl Unpin for StorageEvent
impl UnwindSafe for StorageEvent
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