Trait AbortSignalMethods

Source
pub(crate) trait AbortSignalMethods<D>
where D: DomTypes,
{ // Required methods fn Abort( cx: JSContext, global: &<D as DomTypes>::GlobalScope, reason: Handle<'_, Value>, _can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::AbortSignal>>; fn Aborted(&self) -> bool; fn Reason(&self, cx: JSContext, retval: MutableHandle<'_, Value>); fn ThrowIfAborted(&self); fn GetOnabort(&self) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnabort(&self, value: Option<Rc<EventHandlerNonNull<D>>>); }

Required Methods§

Source

fn Abort( cx: JSContext, global: &<D as DomTypes>::GlobalScope, reason: Handle<'_, Value>, _can_gc: CanGc, ) -> Root<Dom<<D as DomTypes>::AbortSignal>>

Source

fn Aborted(&self) -> bool

Source

fn Reason(&self, cx: JSContext, retval: MutableHandle<'_, Value>)

Source

fn ThrowIfAborted(&self)

Source

fn GetOnabort(&self) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnabort(&self, value: Option<Rc<EventHandlerNonNull<D>>>)

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.

Implementors§