Struct rd_agent_intf::args::EnforceConfig
source · [−]pub struct EnforceConfig {
pub crit_mem_prot: bool,
pub cpu: bool,
pub mem: bool,
pub io: bool,
pub fs: bool,
pub oomd: bool,
}
Fields
crit_mem_prot: bool
cpu: bool
mem: bool
io: bool
fs: bool
oomd: bool
Implementations
sourceimpl EnforceConfig
impl EnforceConfig
pub fn set_all_passive(&mut self) -> &mut Self
pub fn set_crit_mem_prot_only(&mut self) -> &mut Self
pub fn parse_and_merge(&mut self, input: &str) -> Result<()>
pub fn to_passive_string(&self) -> String
pub fn all(&self) -> bool
Trait Implementations
sourceimpl Clone for EnforceConfig
impl Clone for EnforceConfig
sourcefn clone(&self) -> EnforceConfig
fn clone(&self) -> EnforceConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnforceConfig
impl Debug for EnforceConfig
sourceimpl Default for EnforceConfig
impl Default for EnforceConfig
sourceimpl<'de> Deserialize<'de> for EnforceConfig
impl<'de> Deserialize<'de> for EnforceConfig
sourcefn 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
sourceimpl Serialize for EnforceConfig
impl Serialize for EnforceConfig
Auto Trait Implementations
impl RefUnwindSafe for EnforceConfig
impl Send for EnforceConfig
impl Sync for EnforceConfig
impl Unpin for EnforceConfig
impl UnwindSafe for EnforceConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more