Struct tokio::task::local::LocalEnterGuard
source · pub struct LocalEnterGuard {
ctx: Option<Rc<Context>>,
wake_on_schedule: bool,
}
Expand description
Context guard for LocalSet
Fields§
§ctx: Option<Rc<Context>>
§wake_on_schedule: bool
Distinguishes whether the context was entered or being polled.
When we enter it, the value wake_on_schedule
is set. In this case
spawn_local
refers the context, whereas it is not being polled now.
Trait Implementations§
source§impl Debug for LocalEnterGuard
impl Debug for LocalEnterGuard
Auto Trait Implementations§
impl Freeze for LocalEnterGuard
impl !RefUnwindSafe for LocalEnterGuard
impl !Send for LocalEnterGuard
impl !Sync for LocalEnterGuard
impl Unpin for LocalEnterGuard
impl !UnwindSafe for LocalEnterGuard
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