pub struct DispatchTable { /* private fields */ }Expand description
Maps syscall numbers to handler chains.
Implementations§
Source§impl DispatchTable
impl DispatchTable
Sourcepub fn register<H: Handler>(&mut self, syscall_nr: i64, handler: H)
pub fn register<H: Handler>(&mut self, syscall_nr: i64, handler: H)
Register a handler for the given syscall number. Handlers are called in registration order; the first non-Continue result wins.
Generic over H: Handler — accepts either a struct with explicit
impl Handler for ... or a closure (via blanket impl).
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