pub struct TokioRuntime { /* private fields */ }Available on crate features
rt and tokio only.Expand description
the tokio runtime
Implementations§
Source§impl TokioRuntime
impl TokioRuntime
pub fn new() -> &'static TokioRuntime
Sourcepub fn set_runtime(rt: Runtime)
pub fn set_runtime(rt: Runtime)
set new runtime with flush LocalSet
Auto Trait Implementations§
impl !Freeze for TokioRuntime
impl !RefUnwindSafe for TokioRuntime
impl !Send for TokioRuntime
impl !Sync for TokioRuntime
impl Unpin for TokioRuntime
impl UnsafeUnpin for TokioRuntime
impl !UnwindSafe for TokioRuntime
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