pub struct Runtime { /* private fields */ }
Expand description
Implementations§
Source§impl Runtime
impl Runtime
Sourcepub fn enter(&self) -> RuntimeGuard<'_>
pub fn enter(&self) -> RuntimeGuard<'_>
Construct a runtime guard that when in scope will provide thread-local access to runtime drivers.
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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