pub(crate) type EventInit = EventInit;
Aliased Type§
struct EventInit {
pub bubbles: bool,
pub cancelable: bool,
pub composed: bool,
}
Fields§
§bubbles: bool
§cancelable: bool
§composed: bool
Implementations
Source§impl EventInit
impl EventInit
pub unsafe fn to_jsobject( &self, cx: *mut JSContext, obj: MutableHandle<'_, *mut JSObject>, )
Trait Implementations
Source§impl FromJSValConvertible for EventInit
impl FromJSValConvertible for EventInit
Source§unsafe fn from_jsval(
cx: *mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<EventInit>, ()>
unsafe fn from_jsval( cx: *mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<EventInit>, ()>
Convert
val
to type Self
.
Optional configuration of type T
can be passed as the option
argument.
If it returns Err(())
, a JSAPI exception is pending.
If it returns Ok(Failure(reason))
, there is no pending JSAPI exception.