pub struct Pressure {
pub disk_free: AtomicU64,
/* private fields */
}Fields§
§disk_free: AtomicU64The last measured free-bytes reading (for gauges and logs).
Implementations§
Source§impl Pressure
impl Pressure
Sourcepub fn refusal(&self, low_priority: bool) -> Option<String>
pub fn refusal(&self, low_priority: bool) -> Option<String>
The admission verdict for work at a given priority: Shed refuses
everything, Warn already refuses low-priority work — which is what
gives priority: low teeth beyond a niceness delta: it is the work an
operator pre-agreed to sacrifice first.
Auto Trait Implementations§
impl !Freeze for Pressure
impl RefUnwindSafe for Pressure
impl Send for Pressure
impl Sync for Pressure
impl Unpin for Pressure
impl UnsafeUnpin for Pressure
impl UnwindSafe for Pressure
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