pub enum Smol<'a> {
Global,
Handle(&'a Executor<'a>),
}
Expand description
The smol runtime.
Variants
Global
The global executor.
Handle(&'a Executor<'a>)
A specific smol executor.
Trait Implementations
impl<'a> Copy for Smol<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Smol<'a>
impl<'a> Send for Smol<'a>
impl<'a> Sync for Smol<'a>
impl<'a> Unpin for Smol<'a>
impl<'a> UnwindSafe for Smol<'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