Struct worker::AbortController
source · [−]pub struct AbortController { /* private fields */ }
Expand description
An interface that allows you to abort in-flight Fetch requests.
Implementations
sourceimpl AbortController
impl AbortController
sourcepub fn signal(&self) -> AbortSignal
pub fn signal(&self) -> AbortSignal
Gets a AbortSignal which can be passed to a cancellable operation.
sourcepub fn abort(self)
pub fn abort(self)
Aborts any operation using a AbortSignal created from this controller.
sourcepub fn abort_with_reason(self, reason: impl Into<JsValue>)
pub fn abort_with_reason(self, reason: impl Into<JsValue>)
Aborts any operation using a AbortSignal created from this controller with the provided reason.
Trait Implementations
sourceimpl Debug for AbortController
impl Debug for AbortController
Auto Trait Implementations
impl RefUnwindSafe for AbortController
impl !Send for AbortController
impl !Sync for AbortController
impl Unpin for AbortController
impl UnwindSafe for AbortController
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more