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
Auto Trait Implementations
impl RefUnwindSafe for DropGuard
impl UnwindSafe for DropGuard
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more