struct CoreGuard<'a> {
context: Context,
scheduler: &'a CurrentThread,
}
Expand description
Used to ensure we always place the Core
value back into its slot in
CurrentThread
, even if the future panics.
Fields§
§context: Context
§scheduler: &'a CurrentThread
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for CoreGuard<'a>
impl<'a> !RefUnwindSafe for CoreGuard<'a>
impl<'a> Send for CoreGuard<'a>
impl<'a> !Sync for CoreGuard<'a>
impl<'a> Unpin for CoreGuard<'a>
impl<'a> !UnwindSafe for CoreGuard<'a>
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