pub struct TreeMemoryOptions {
pub max_mb: Option<u64>,
pub backend: Option<String>,
pub launcher: PathBuf,
}Expand description
How a kernel caps the memory of its whole process tree (tree_memory).
Fields§
§max_mb: Option<u64>The cap in MiB; overrides ULTRON_RLM_MAX_TREE_MEMORY_MB, whose default is twice the per-process limit.
0 disables it.
backend: Option<String>auto | cgroup | watchdog | off; None: ULTRON_RLM_TREE_MEMORY_BACKEND, else auto (a capped cgroup
scope when this system allows one, else the watchdog).
launcher: PathBufThe scope launcher (systemd-run), probed once before its first use.
Trait Implementations§
Source§impl Clone for TreeMemoryOptions
impl Clone for TreeMemoryOptions
Source§impl Debug for TreeMemoryOptions
impl Debug for TreeMemoryOptions
Source§impl Default for TreeMemoryOptions
impl Default for TreeMemoryOptions
impl Eq for TreeMemoryOptions
Source§impl PartialEq for TreeMemoryOptions
impl PartialEq for TreeMemoryOptions
impl StructuralPartialEq for TreeMemoryOptions
Auto Trait Implementations§
impl Forget for TreeMemoryOptions
impl Freeze for TreeMemoryOptions
impl Move for TreeMemoryOptions
impl RefUnwindSafe for TreeMemoryOptions
impl Send for TreeMemoryOptions
impl Sync for TreeMemoryOptions
impl Unpin for TreeMemoryOptions
impl UnsafeUnpin for TreeMemoryOptions
impl UnwindSafe for TreeMemoryOptions
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
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
Compare self to
key and return true if they are equal.