pub struct FnResourceMonitor { /* private fields */ }Expand description
A resource monitor that reports Elevated when a closure returns true
and Critical when a second closure returns true.
Implementations§
Trait Implementations§
Source§impl ResourceMonitor for FnResourceMonitor
impl ResourceMonitor for FnResourceMonitor
Source§fn current_pressure(&self) -> PressureLevel
fn current_pressure(&self) -> PressureLevel
Return the current resource pressure level.
Auto Trait Implementations§
impl !RefUnwindSafe for FnResourceMonitor
impl !UnwindSafe for FnResourceMonitor
impl Freeze for FnResourceMonitor
impl Send for FnResourceMonitor
impl Sync for FnResourceMonitor
impl Unpin for FnResourceMonitor
impl UnsafeUnpin for FnResourceMonitor
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