pub trait MediaQueryListEventMethods<D: DomTypes> {
    // Required methods
    fn Media(&self) -> DOMString;
    fn Matches(&self) -> bool;
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &MediaQueryListEventInit,
    ) -> Fallible<DomRoot<D::MediaQueryListEvent>>;
}

Required Methods§

Source

fn Media(&self) -> DOMString

Source

fn Matches(&self) -> bool

Source

fn IsTrusted(&self) -> bool

Source

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

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§