pub enum IoMaxStatus {
Enforced,
Unavailable,
NotRequired,
NotProbed,
}Expand description
Whether the declared capabilities.resources.cgroup_io_bytes_per_sec ceiling is actually on
this session’s cgroup scope.
Four states rather than a bool because “the write failed” and “there was never a scope to
write to” are different findings with different remediations, and neither is the same as “this
value was never established”. Self::NotProbed is the Default so a report nobody filled in
claims nothing.
Variants§
Enforced
The io.max write succeeded against the device backing the workdir. The ceiling is on the
scope.
A scope exists and the io.max write did not succeed. memory.max, pids.max and
cpu.max are still enforced on it; I/O bandwidth is not bounded. What W-SEC-021 reports.
NotRequired
No scope was asked for: either this capsule declares no way to reach a native subprocess, or this is not Linux, where cgroups cannot exist. Not a shortfall — there is no process tree for a ceiling to apply to.
NotProbed
Nobody asked. The Default, so a IoMaxReport that was constructed rather than measured
asserts nothing about the host.
Trait Implementations§
Source§impl Clone for IoMaxStatus
impl Clone for IoMaxStatus
Source§fn clone(&self) -> IoMaxStatus
fn clone(&self) -> IoMaxStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for IoMaxStatus
Source§impl Debug for IoMaxStatus
impl Debug for IoMaxStatus
Source§impl Default for IoMaxStatus
impl Default for IoMaxStatus
Source§fn default() -> IoMaxStatus
fn default() -> IoMaxStatus
impl Eq for IoMaxStatus
Source§impl PartialEq for IoMaxStatus
impl PartialEq for IoMaxStatus
Source§impl Serialize for IoMaxStatus
impl Serialize for IoMaxStatus
impl StructuralPartialEq for IoMaxStatus
Auto Trait Implementations§
impl Freeze for IoMaxStatus
impl RefUnwindSafe for IoMaxStatus
impl Send for IoMaxStatus
impl Sync for IoMaxStatus
impl Unpin for IoMaxStatus
impl UnsafeUnpin for IoMaxStatus
impl UnwindSafe for IoMaxStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more