Trait script::dom::bindings::codegen::Bindings::CloseEventBinding::CloseEvent_Binding::CloseEventMethods
source · pub 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: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
type_: DOMString,
eventInitDict: &CloseEventInit,
) -> Result<Root<Dom<CloseEvent>>, Error>;
}
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>
Object Safety§
This trait is not object safe.