Expand description
A handle to an executor that automatically stops it on drop.
Implementations
Trait Implementations
sourceimpl<T: Executor + ?Sized> Drop for AutoStopHandle<T>
impl<T: Executor + ?Sized> Drop for AutoStopHandle<T>
sourceimpl<T: 'static + Executor> From<AutoStopHandle<T>> for AutoStopHandle<dyn Executor>
impl<T: 'static + Executor> From<AutoStopHandle<T>> for AutoStopHandle<dyn Executor>
sourcefn from(src: AutoStopHandle<T>) -> Self
fn from(src: AutoStopHandle<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl<T> !RefUnwindSafe for AutoStopHandle<T>
impl<T: ?Sized> Send for AutoStopHandle<T>
impl<T: ?Sized> Sync for AutoStopHandle<T>
impl<T: ?Sized> Unpin for AutoStopHandle<T>where
T: Unpin,
impl<T> !UnwindSafe for AutoStopHandle<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more