pub enum Seccomp {
KillThread,
KillProcess,
Trap,
Fail,
Log,
}Expand description
What action should be taken for system calls that are not explicitly allowed. The options are:
Variants§
KillThread
Kill the calling thread
KillProcess
Kill the entire process
Trap
Trigger a trap (that can be caught)
Fail
Make the syscall result in an EPERM error
Log
Allow the call but log it
Implementations§
Auto Trait Implementations§
impl Forget for Seccomp
impl Freeze for Seccomp
impl Move for Seccomp
impl RefUnwindSafe for Seccomp
impl Send for Seccomp
impl Sync for Seccomp
impl Unpin for Seccomp
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more