pub struct AppRule {
pub match_exe: Vec<String>,
pub memory: Option<String>,
pub cpu: Option<String>,
pub io_read: Option<String>,
pub io_write: Option<String>,
}Expand description
A persistent application limit rule. Instances whose executable basename is
in match_exe are placed into a shared app-<name> cgroup with these limits.
Limits are stored inline (a snapshot), not as a reference to a profile.
Fields§
§match_exe: Vec<String>Executable basenames this rule matches.
memory: Option<String>Memory limit (e.g., “4G”).
cpu: Option<String>CPU limit (e.g., “75%”).
io_read: Option<String>I/O read bandwidth limit (e.g., “100M”).
io_write: Option<String>I/O write bandwidth limit (e.g., “50M”).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppRule
impl<'de> Deserialize<'de> for AppRule
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AppRule
Auto Trait Implementations§
impl Freeze for AppRule
impl RefUnwindSafe for AppRule
impl Send for AppRule
impl Sync for AppRule
impl Unpin for AppRule
impl UnsafeUnpin for AppRule
impl UnwindSafe for AppRule
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