Struct ffi_helpers::task::CancellationToken [−][src]
pub struct CancellationToken(_);
Expand description
A shareable token to let you notify other tasks they should stop what they are doing and exit early.
Implementations
Create a new CancellationToken
.
Cancel the token, notifying anyone else listening that they should halt what they are doing.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CancellationToken
impl Send for CancellationToken
impl Sync for CancellationToken
impl Unpin for CancellationToken
impl UnwindSafe for CancellationToken
Blanket Implementations
Mutably borrows from an owned value. Read more