pub enum Local {}Expand description
The flavour of a runtime that stays on the thread that created it.
A local runtime runs any 'static future, Send or not. It keeps its state in Rc and
RefCell rather than behind atomics and locks. Its handles, and the tasks, timers and
registrations built on it, cannot be sent to another thread.
This is a marker type. It has no values, and is only used as a type parameter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Local
impl RefUnwindSafe for Local
impl Send for Local
impl Sync for Local
impl Unpin for Local
impl UnsafeUnpin for Local
impl UnwindSafe for Local
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