Struct tokio_executor::DefaultGuard
source · [−]pub struct DefaultGuard { /* private fields */ }
Expand description
Ensures that the executor is removed from the thread-local context when leaving the scope. This handles cases that involve panicking.
Trait Implementations
sourceimpl Debug for DefaultGuard
impl Debug for DefaultGuard
Auto Trait Implementations
impl RefUnwindSafe for DefaultGuard
impl Send for DefaultGuard
impl Sync for DefaultGuard
impl Unpin for DefaultGuard
impl UnwindSafe for DefaultGuard
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more