pub struct CancelToken(/* private fields */);
Expand description
Handle to a Pollable registered using push_waker_and_get_token
which may
be used to cancel and drop the Pollable.
Implementations§
Source§impl CancelToken
impl CancelToken
Trait Implementations§
Source§impl From<CancelToken> for CancelOnDropToken
impl From<CancelToken> for CancelOnDropToken
Source§fn from(token: CancelToken) -> Self
fn from(token: CancelToken) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CancelToken
impl RefUnwindSafe for CancelToken
impl Send for CancelToken
impl Sync for CancelToken
impl Unpin for CancelToken
impl UnwindSafe for CancelToken
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