pub trait CloseEventMethods<D>where
D: DomTypes,{
// Required methods
fn WasClean(&self) -> bool;
fn Code(&self) -> u16;
fn Reason(&self) -> DOMString;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &CloseEventInit,
) -> Result<Root<Dom<<D as DomTypes>::CloseEvent>>, Error>;
}
Required Methods§
fn WasClean(&self) -> bool
fn Code(&self) -> u16
fn Reason(&self) -> DOMString
fn IsTrusted(&self) -> bool
fn Constructor( global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, can_gc: CanGc, type_: DOMString, eventInitDict: &CloseEventInit, ) -> Result<Root<Dom<<D as DomTypes>::CloseEvent>>, 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.