pub trait CloseEventMethods {
    // Required methods
    fn WasClean(&self) -> bool;
    fn Code(&self) -> u16;
    fn Reason(&self) -> DOMString;
    fn IsTrusted(&self) -> bool;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        type_: DOMString,
        eventInitDict: &CloseEventInit,
    ) -> Result<Root<Dom<CloseEvent>>, Error>;
}

Required Methods§

source

fn WasClean(&self) -> bool

source

fn Code(&self) -> u16

source

fn Reason(&self) -> DOMString

source

fn IsTrusted(&self) -> bool

source

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

Object Safety§

This trait is not object safe.

Implementors§