pub trait StorageEventMethods<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<Storage>>>;
    fn InitStorageEvent(
        &self,
        type_: DOMString,
        bubbles: bool,
        cancelable: bool,
        key: Option<DOMString>,
        oldValue: Option<DOMString>,
        newValue: Option<DOMString>,
        url: USVString,
        storageArea: Option<&Storage>,
    );
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &StorageEventInit,
    ) -> Result<Root<Dom<StorageEvent>>, Error>;
}

Required Methods§

source

fn GetKey(&self) -> Option<DOMString>

source

fn GetOldValue(&self) -> Option<DOMString>

source

fn GetNewValue(&self) -> Option<DOMString>

source

fn Url(&self) -> DOMString

source

fn GetStorageArea(&self) -> Option<Root<Dom<Storage>>>

source

fn InitStorageEvent( &self, type_: DOMString, bubbles: bool, cancelable: bool, key: Option<DOMString>, oldValue: Option<DOMString>, newValue: Option<DOMString>, url: USVString, storageArea: Option<&Storage>, )

source

fn IsTrusted(&self) -> bool

source

fn Constructor( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &StorageEventInit, ) -> Result<Root<Dom<StorageEvent>>, Error>

Object Safety§

This trait is not object safe.

Implementors§