pub struct Seccomp { /* private fields */ }
Expand description
Seccomp represents the “seccomp” field.
Implementations§
source§impl Seccomp
impl Seccomp
sourcepub fn enabled_mut(&mut self) -> &mut Option<bool>
pub fn enabled_mut(&mut self) -> &mut Option<bool>
“enabled” field represents whether seccomp support is compiled in. “None” means “unknown”, not “false”.
sourcepub fn actions_mut(&mut self) -> &mut Option<Vec<LinuxSeccompAction>>
pub fn actions_mut(&mut self) -> &mut Option<Vec<LinuxSeccompAction>>
“actions” field represents the list of the recognized actions. “None” means “unknown”, not “no support for any action”.
sourcepub fn operators_mut(&mut self) -> &mut Option<Vec<String>>
pub fn operators_mut(&mut self) -> &mut Option<Vec<String>>
“operators” field represents the list of the recognized operators. “None” means “unknown”, not “no support for any operator”.
sourcepub fn archs_mut(&mut self) -> &mut Option<Vec<Arch>>
pub fn archs_mut(&mut self) -> &mut Option<Vec<Arch>>
“archs” field represents the list of the recognized architectures. “None” means “unknown”, not “no support for any architecture”.
sourcepub fn known_flags_mut(&mut self) -> &mut Option<Vec<String>>
pub fn known_flags_mut(&mut self) -> &mut Option<Vec<String>>
“knownFlags” field represents the list of the recognized filter flags. “None” means “unknown”, not “no flags are recognized”.
sourcepub fn supported_flags_mut(&mut self) -> &mut Option<Vec<String>>
pub fn supported_flags_mut(&mut self) -> &mut Option<Vec<String>>
“supportedFlags” field represents the list of the supported filter flags. This list may be a subset of the “knownFlags” due to some of unsupported flags by the current kernel and/or libseccomp. “None” means “unknown”, not “no flags are supported”.
source§impl Seccomp
impl Seccomp
sourcepub fn enabled(&self) -> &Option<bool>
pub fn enabled(&self) -> &Option<bool>
“enabled” field represents whether seccomp support is compiled in. “None” means “unknown”, not “false”.
sourcepub fn actions(&self) -> &Option<Vec<LinuxSeccompAction>>
pub fn actions(&self) -> &Option<Vec<LinuxSeccompAction>>
“actions” field represents the list of the recognized actions. “None” means “unknown”, not “no support for any action”.
sourcepub fn operators(&self) -> &Option<Vec<String>>
pub fn operators(&self) -> &Option<Vec<String>>
“operators” field represents the list of the recognized operators. “None” means “unknown”, not “no support for any operator”.
sourcepub fn archs(&self) -> &Option<Vec<Arch>>
pub fn archs(&self) -> &Option<Vec<Arch>>
“archs” field represents the list of the recognized architectures. “None” means “unknown”, not “no support for any architecture”.
sourcepub fn known_flags(&self) -> &Option<Vec<String>>
pub fn known_flags(&self) -> &Option<Vec<String>>
“knownFlags” field represents the list of the recognized filter flags. “None” means “unknown”, not “no flags are recognized”.
sourcepub fn supported_flags(&self) -> &Option<Vec<String>>
pub fn supported_flags(&self) -> &Option<Vec<String>>
“supportedFlags” field represents the list of the supported filter flags. This list may be a subset of the “knownFlags” due to some of unsupported flags by the current kernel and/or libseccomp. “None” means “unknown”, not “no flags are supported”.
source§impl Seccomp
impl Seccomp
sourcepub fn set_enabled(&mut self, val: Option<bool>) -> &mut Self
pub fn set_enabled(&mut self, val: Option<bool>) -> &mut Self
“enabled” field represents whether seccomp support is compiled in. “None” means “unknown”, not “false”.
sourcepub fn set_actions(&mut self, val: Option<Vec<LinuxSeccompAction>>) -> &mut Self
pub fn set_actions(&mut self, val: Option<Vec<LinuxSeccompAction>>) -> &mut Self
“actions” field represents the list of the recognized actions. “None” means “unknown”, not “no support for any action”.
sourcepub fn set_operators(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_operators(&mut self, val: Option<Vec<String>>) -> &mut Self
“operators” field represents the list of the recognized operators. “None” means “unknown”, not “no support for any operator”.
sourcepub fn set_archs(&mut self, val: Option<Vec<Arch>>) -> &mut Self
pub fn set_archs(&mut self, val: Option<Vec<Arch>>) -> &mut Self
“archs” field represents the list of the recognized architectures. “None” means “unknown”, not “no support for any architecture”.
sourcepub fn set_known_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_known_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
“knownFlags” field represents the list of the recognized filter flags. “None” means “unknown”, not “no flags are recognized”.
sourcepub fn set_supported_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
pub fn set_supported_flags(&mut self, val: Option<Vec<String>>) -> &mut Self
“supportedFlags” field represents the list of the supported filter flags. This list may be a subset of the “knownFlags” due to some of unsupported flags by the current kernel and/or libseccomp. “None” means “unknown”, not “no flags are supported”.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Seccomp
impl<'de> Deserialize<'de> for Seccomp
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>,
source§impl PartialEq for Seccomp
impl PartialEq for Seccomp
impl Eq for Seccomp
impl StructuralPartialEq for Seccomp
Auto Trait Implementations§
impl Freeze for Seccomp
impl RefUnwindSafe for Seccomp
impl Send for Seccomp
impl Sync for Seccomp
impl Unpin for Seccomp
impl UnwindSafe for Seccomp
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)