pub struct ExecutorActivity { /* private fields */ }Expand description
Executor idle hook; does nothing without the metrics feature.
Implementations§
Source§impl ExecutorActivity
impl ExecutorActivity
pub fn new(_spawner: Spawner) -> Self
pub fn measure_idle<R>(&self, wait: impl FnOnce() -> R) -> R
Auto Trait Implementations§
impl Freeze for ExecutorActivity
impl RefUnwindSafe for ExecutorActivity
impl !Send for ExecutorActivity
impl !Sync for ExecutorActivity
impl Unpin for ExecutorActivity
impl UnsafeUnpin for ExecutorActivity
impl UnwindSafe for ExecutorActivity
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