pub struct ForegroundActivity;Expand description
Guard one foreground operation. Dropping it wakes the idle clock and lets the low-priority worker yield cooperatively on every supported platform.
Implementations§
Trait Implementations§
Source§impl Drop for ForegroundActivity
impl Drop for ForegroundActivity
Auto Trait Implementations§
impl Freeze for ForegroundActivity
impl RefUnwindSafe for ForegroundActivity
impl Send for ForegroundActivity
impl Sync for ForegroundActivity
impl Unpin for ForegroundActivity
impl UnsafeUnpin for ForegroundActivity
impl UnwindSafe for ForegroundActivity
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