pub enum Tokio<'a> {
Global,
Handle(&'a Runtime),
}
Expand description
The Tokio runtime.
Variants
Global
The global executor.
Handle(&'a Runtime)
A handle to a specific executor.
Trait Implementations
impl<'a> Copy for Tokio<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Tokio<'a>
impl<'a> Send for Tokio<'a>
impl<'a> Sync for Tokio<'a>
impl<'a> Unpin for Tokio<'a>
impl<'a> !UnwindSafe for Tokio<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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