pub struct AbortSignal { /* private fields */ }Expand description
The read end of an abort pair — carried by listeners so dispatch can check whether they should still fire.
Cheap to clone (Rc clone); attach one to each listener you
want the controller to govern.
Implementations§
Source§impl AbortSignal
impl AbortSignal
Sourcepub fn is_aborted(&self) -> bool
pub fn is_aborted(&self) -> bool
Has the backing controller fired?
Trait Implementations§
Source§impl Clone for AbortSignal
impl Clone for AbortSignal
Auto Trait Implementations§
impl !RefUnwindSafe for AbortSignal
impl !Send for AbortSignal
impl !Sync for AbortSignal
impl !UnwindSafe for AbortSignal
impl Freeze for AbortSignal
impl Unpin for AbortSignal
impl UnsafeUnpin for AbortSignal
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