pub struct LinuxSyscall { /* private fields */ }
Expand description
LinuxSyscall is used to match a syscall in seccomp.
Implementations§
Source§impl LinuxSyscall
impl LinuxSyscall
Source§impl LinuxSyscall
impl LinuxSyscall
Source§impl LinuxSyscall
impl LinuxSyscall
Sourcepub fn set_action(&mut self, val: LinuxSeccompAction) -> &mut Self
pub fn set_action(&mut self, val: LinuxSeccompAction) -> &mut Self
The action to be done for the syscalls.
Sourcepub fn set_errno_ret(&mut self, val: Option<u32>) -> &mut Self
pub fn set_errno_ret(&mut self, val: Option<u32>) -> &mut Self
The error return value.
Sourcepub fn set_args(&mut self, val: Option<Vec<LinuxSeccompArg>>) -> &mut Self
pub fn set_args(&mut self, val: Option<Vec<LinuxSeccompArg>>) -> &mut Self
The arguments for the syscalls.
Trait Implementations§
Source§impl Clone for LinuxSyscall
impl Clone for LinuxSyscall
Source§fn clone(&self) -> LinuxSyscall
fn clone(&self) -> LinuxSyscall
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinuxSyscall
impl Debug for LinuxSyscall
Source§impl Default for LinuxSyscall
impl Default for LinuxSyscall
Source§fn default() -> LinuxSyscall
fn default() -> LinuxSyscall
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LinuxSyscall
impl<'de> Deserialize<'de> for LinuxSyscall
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
Source§impl PartialEq for LinuxSyscall
impl PartialEq for LinuxSyscall
Source§impl Serialize for LinuxSyscall
impl Serialize for LinuxSyscall
impl Eq for LinuxSyscall
impl StructuralPartialEq for LinuxSyscall
Auto Trait Implementations§
impl Freeze for LinuxSyscall
impl RefUnwindSafe for LinuxSyscall
impl Send for LinuxSyscall
impl Sync for LinuxSyscall
impl Unpin for LinuxSyscall
impl UnwindSafe for LinuxSyscall
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)