pub struct DispatchTable { /* private fields */ }Expand description
Maps syscall numbers to handler chains.
Implementations§
Source§impl DispatchTable
impl DispatchTable
Sourcepub fn register(&mut self, syscall_nr: i64, handler: HandlerFn)
pub fn register(&mut self, syscall_nr: i64, handler: HandlerFn)
Register a handler for the given syscall number. Handlers are called in registration order; the first non-Continue result wins.
Sourcepub async fn dispatch(
&self,
notif: SeccompNotif,
ctx: &Arc<SupervisorCtx>,
notif_fd: RawFd,
) -> NotifAction
pub async fn dispatch( &self, notif: SeccompNotif, ctx: &Arc<SupervisorCtx>, notif_fd: RawFd, ) -> NotifAction
Dispatch a notification through the handler chain for its syscall number.
Auto Trait Implementations§
impl Freeze for DispatchTable
impl !RefUnwindSafe for DispatchTable
impl Send for DispatchTable
impl Sync for DispatchTable
impl Unpin for DispatchTable
impl UnsafeUnpin for DispatchTable
impl !UnwindSafe for DispatchTable
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