pub struct AbortController { /* private fields */ }Expand description
Abort controller for cancelling operations
Implementations§
Source§impl AbortController
impl AbortController
pub fn new() -> Self
pub fn with_signal(signal: AbortSignal) -> Self
pub fn signal(&self) -> Option<&AbortSignal>
pub fn abort(&self)
pub fn is_aborted(&self) -> bool
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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