Struct tokio_util::sync::DropGuard[][src]

pub struct DropGuard { /* fields omitted */ }
Expand description

A wrapper for cancellation token which automatically cancels it on drop. It is created using drop_guard method on the CancellationToken.

Implementations

Returns stored cancellation token and removes this drop guard instance (i.e. it will no longer cancel token). Other guards for this token are not affected.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.