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

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<DomRoot<D::Storage>>

Source

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

Source

fn IsTrusted(&self) -> bool

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &StorageEventInit<D>, ) -> Fallible<DomRoot<D::StorageEvent>>

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.

Implementors§