Struct ffi_helpers::task::CancellationToken [] [src]

pub struct CancellationToken(_);

A shareable token to let you notify other tasks they should stop what they are doing and exit early.

Methods

impl CancellationToken
[src]

[src]

Create a new CancellationToken.

[src]

Has this token already been cancelled?

[src]

Cancel the token, notifying anyone else listening that they should halt what they are doing.

[src]

Trait Implementations

impl Debug for CancellationToken
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for CancellationToken
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for CancellationToken
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations