pub struct AbortController(/* private fields */);Implementations§
Source§impl AbortController
impl AbortController
pub fn new() -> AbortController
pub fn abort(&self)
pub fn signal(&self) -> AbortSignal
Sourcepub fn child_of(signal: &AbortSignal) -> AbortController
pub fn child_of(signal: &AbortSignal) -> AbortController
Parent cancellation reaches this controller; cancelling the child never reaches its parent.
Trait Implementations§
Source§impl Clone for AbortController
impl Clone for AbortController
Source§fn clone(&self) -> AbortController
fn clone(&self) -> AbortController
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AbortController
impl Debug for AbortController
Source§impl Default for AbortController
impl Default for AbortController
Source§fn default() -> AbortController
fn default() -> AbortController
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AbortController
impl RefUnwindSafe for AbortController
impl Send for AbortController
impl Sync for AbortController
impl Unpin for AbortController
impl UnsafeUnpin for AbortController
impl UnwindSafe for AbortController
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more