pub struct NativeCancellationToken { /* private fields */ }Expand description
A token for signaling cancellation on native platforms.
Wraps tokio_util::sync::CancellationToken for efficient async cancellation.
Implementations§
Trait Implementations§
Source§impl Clone for NativeCancellationToken
Available on non-WebAssembly only.
impl Clone for NativeCancellationToken
Available on non-WebAssembly only.
Auto Trait Implementations§
impl Freeze for NativeCancellationToken
impl RefUnwindSafe for NativeCancellationToken
impl Send for NativeCancellationToken
impl Sync for NativeCancellationToken
impl Unpin for NativeCancellationToken
impl UnsafeUnpin for NativeCancellationToken
impl UnwindSafe for NativeCancellationToken
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