pub struct Notification { /* private fields */ }
Available on crate feature
libseccomp-2-5
only.Expand description
Represents a seccomp notification.
This struct has getter methods for the various fields of the notification.
Implementations§
Source§impl Notification
impl Notification
Sourcepub fn receive(fd: RawFd) -> Result<Self>
pub fn receive(fd: RawFd) -> Result<Self>
Receive a seccomp notification from the given notification fd.
pub fn id(&self) -> u64
pub fn pid(&self) -> u32
pub fn syscall(&self) -> c_int
pub fn arch(&self) -> Arch
pub fn instruction_pointer(&self) -> u64
pub fn args(&self) -> &[u64; 6]
Sourcepub fn is_id_valid(&self, fd: RawFd) -> bool
pub fn is_id_valid(&self, fd: RawFd) -> bool
Check if the notification ID as returned by id()
is still valid.
See seccomp_notify_id_valid(3) for an explanation of why this is necessary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Notification
impl RefUnwindSafe for Notification
impl !Send for Notification
impl !Sync for Notification
impl Unpin for Notification
impl UnwindSafe for Notification
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