pub(crate) trait CloseEventMethods<D: DomTypes> {
// Required methods
fn WasClean(&self) -> bool;
fn Code(&self) -> u16;
fn Reason(&self) -> DOMString;
fn IsTrusted(&self) -> bool;
fn Constructor(
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &CloseEventInit,
) -> Fallible<DomRoot<D::CloseEvent>>;
}
Required Methods§
fn WasClean(&self) -> bool
fn Code(&self) -> u16
fn Reason(&self) -> DOMString
fn IsTrusted(&self) -> bool
fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, type_: DOMString, eventInitDict: &CloseEventInit, ) -> Fallible<DomRoot<D::CloseEvent>>
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.