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.