pub struct StdCancellationTokenSource { /* private fields */ }
Implementations§
Source§impl StdCancellationTokenSource
impl StdCancellationTokenSource
pub fn new() -> StdCancellationTokenSource
pub fn token(&self) -> StdCancellationToken
pub fn cancel(&self)
Trait Implementations§
impl Send for StdCancellationTokenSource
impl Sync for StdCancellationTokenSource
Auto Trait Implementations§
impl Freeze for StdCancellationTokenSource
impl RefUnwindSafe for StdCancellationTokenSource
impl Unpin for StdCancellationTokenSource
impl UnwindSafe for StdCancellationTokenSource
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