pub struct HandlerCtx {
pub notif: SeccompNotif,
pub notif_fd: RawFd,
}Expand description
Context passed to Handler::handle.
notif is the kernel notification (owned by value — it’s a small
repr(C) struct, cheap to copy). notif_fd is the supervisor’s
seccomp listener fd, used by helpers like read_child_mem /
write_child_mem / read_child_cstr for TOCTOU-safe child memory
access.
Handler state lives on the implementor (&self). Supervisor-internal
state is intentionally not exposed here so the SupervisorCtx
internal fields are not part of the downstream extension contract.
Fields§
§notif: SeccompNotif§notif_fd: RawFdAuto Trait Implementations§
impl Freeze for HandlerCtx
impl RefUnwindSafe for HandlerCtx
impl Send for HandlerCtx
impl Sync for HandlerCtx
impl Unpin for HandlerCtx
impl UnsafeUnpin for HandlerCtx
impl UnwindSafe for HandlerCtx
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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