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>,
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)