pub struct SchedulerScopeGuardRaw { /* private fields */ }Expand description
Panic-safe scope guard that does NOT hold a borrow across the body.
The scope! macro uses this (not SchedulerScopeGuard) so the guarded
body — including nested scope! invocations — can keep using the
Scheduler normally. At drop time (normal or unwind) no other borrows of
the scheduler are live, since the body has ended.
Implementations§
Trait Implementations§
Source§impl Drop for SchedulerScopeGuardRaw
impl Drop for SchedulerScopeGuardRaw
Auto Trait Implementations§
impl !Send for SchedulerScopeGuardRaw
impl !Sync for SchedulerScopeGuardRaw
impl Freeze for SchedulerScopeGuardRaw
impl RefUnwindSafe for SchedulerScopeGuardRaw
impl Unpin for SchedulerScopeGuardRaw
impl UnsafeUnpin for SchedulerScopeGuardRaw
impl UnwindSafe for SchedulerScopeGuardRaw
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