pub trait AbortSignalMethods<D: DomTypes> {
    // Required methods
    fn Abort(
        cx: SafeJSContext,
        global: &D::GlobalScope,
        reason: HandleValue<'_>,
        _can_gc: CanGc,
    ) -> DomRoot<D::AbortSignal>;
    fn Aborted(&self) -> bool;
    fn Reason(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>);
    fn ThrowIfAborted(&self);
    fn GetOnabort(&self) -> Option<Rc<EventHandlerNonNull<D>>>;
    fn SetOnabort(&self, value: Option<Rc<EventHandlerNonNull<D>>>);
}

Required Methods§

Source

fn Abort( cx: SafeJSContext, global: &D::GlobalScope, reason: HandleValue<'_>, _can_gc: CanGc, ) -> DomRoot<D::AbortSignal>

Source

fn Aborted(&self) -> bool

Source

fn Reason(&self, cx: SafeJSContext, retval: MutableHandleValue<'_>)

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§