pub enum Tokio {}Expand description
The Tokio runtime, which runs blocking work with
tokio::task::spawn_blocking.
The work runs on the runtime of the task that awaits it; awaiting outside
a Tokio runtime fails with Error::SpawnFailed. Only a type, never a
value. Requires the tokio feature.
Trait Implementations§
impl AsyncRuntime for Tokio
Available on crate feature
tokio only.Auto Trait Implementations§
impl Freeze for Tokio
impl RefUnwindSafe for Tokio
impl Send for Tokio
impl Sync for Tokio
impl Unpin for Tokio
impl UnsafeUnpin for Tokio
impl UnwindSafe for Tokio
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more