Struct ore::cgroup::MemoryLimit [−][src]
Expand description
Represents a cgroup memory limit, with both ram and swap maximums if they exist. Fields should be None if a limit does not exist or when running on a platform without cgroup support (ie: non-Linux platforms).
Fields
max: Option<usize>
Maximum RAM limit, in bytes, if a limit exists.
swap_max: Option<usize>
Maximum swap limit, in bytes, if a limit exists.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MemoryLimit
impl Send for MemoryLimit
impl Sync for MemoryLimit
impl Unpin for MemoryLimit
impl UnwindSafe for MemoryLimit
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more