pub trait AbortControllerMethods<D: DomTypes> {
    // Required methods
    fn Signal(&self) -> DomRoot<D::AbortSignal>;
    fn Abort(
        &self,
        cx: SafeJSContext,
        reason: HandleValue<'_>,
        _comp: InRealm<'_>,
        _can_gc: CanGc,
    );
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
    ) -> DomRoot<D::AbortController>;
}

Required Methods§

Source

fn Signal(&self) -> DomRoot<D::AbortSignal>

Source

fn Abort( &self, cx: SafeJSContext, reason: HandleValue<'_>, _comp: InRealm<'_>, _can_gc: CanGc, )

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> DomRoot<D::AbortController>

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§