pub struct Supervisor { /* private fields */ }Expand description
Seccomp notification supervisor.
Implementations§
Source§impl Supervisor
impl Supervisor
Sourcepub fn new(listener_fd: OwnedFd, mode: NotifyMode, vfs: VirtualFs) -> Self
pub fn new(listener_fd: OwnedFd, mode: NotifyMode, vfs: VirtualFs) -> Self
Create a new supervisor.
Sourcepub fn handle_event(&self) -> Result<Option<NotifyEvent>>
pub fn handle_event(&self) -> Result<Option<NotifyEvent>>
Handle a notification event. Call when the listener fd is readable.
Returns Some(NotifyEvent) on success, None if the notification was
stale (child died or already handled).
Auto Trait Implementations§
impl Freeze for Supervisor
impl RefUnwindSafe for Supervisor
impl Send for Supervisor
impl Sync for Supervisor
impl Unpin for Supervisor
impl UnsafeUnpin for Supervisor
impl UnwindSafe for Supervisor
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