pub(crate) trait StorageEventMethods<D>where
    D: DomTypes,{
    // Required methods
    fn GetKey(&self) -> Option<DOMString>;
    fn GetOldValue(&self) -> Option<DOMString>;
    fn GetNewValue(&self) -> Option<DOMString>;
    fn Url(&self) -> DOMString;
    fn GetStorageArea(&self) -> Option<Root<Dom<<D as DomTypes>::Storage>>>;
    fn InitStorageEvent(
        &self,
        type_: DOMString,
        bubbles: bool,
        cancelable: bool,
        key: Option<DOMString>,
        oldValue: Option<DOMString>,
        newValue: Option<DOMString>,
        url: USVString,
        storageArea: Option<&<D as DomTypes>::Storage>,
    );
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &<D as DomTypes>::Window,
        proto: Option<Handle<'_, *mut JSObject>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &StorageEventInit<D>,
    ) -> Result<Root<Dom<<D as DomTypes>::StorageEvent>>, Error>;
}Required Methods§
fn GetKey(&self) -> Option<DOMString>
fn GetOldValue(&self) -> Option<DOMString>
fn GetNewValue(&self) -> Option<DOMString>
fn Url(&self) -> DOMString
fn GetStorageArea(&self) -> Option<Root<Dom<<D as DomTypes>::Storage>>>
fn InitStorageEvent( &self, type_: DOMString, bubbles: bool, cancelable: bool, key: Option<DOMString>, oldValue: Option<DOMString>, newValue: Option<DOMString>, url: USVString, storageArea: Option<&<D as DomTypes>::Storage>, )
fn IsTrusted(&self) -> bool
fn Constructor( global: &<D as DomTypes>::Window, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: &StorageEventInit<D>, ) -> Result<Root<Dom<<D as DomTypes>::StorageEvent>>, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.