pub struct UnifiedInterruptResolver { /* private fields */ }Expand description
Unified interrupt resolver that routes to source-specific handlers.
Implementations§
Source§impl UnifiedInterruptResolver
impl UnifiedInterruptResolver
Sourcepub fn with_handler(
self,
source: InterruptSource,
handler: InterruptHandlerFn,
) -> Self
pub fn with_handler( self, source: InterruptSource, handler: InterruptHandlerFn, ) -> Self
Registers a handler for a specific source.
Sourcepub fn resolve(&self, interrupt: &Interrupt) -> ResolveResult
pub fn resolve(&self, interrupt: &Interrupt) -> ResolveResult
Resolves an interrupt by routing to the appropriate handler.
Trait Implementations§
Source§impl Default for UnifiedInterruptResolver
impl Default for UnifiedInterruptResolver
Auto Trait Implementations§
impl Freeze for UnifiedInterruptResolver
impl !RefUnwindSafe for UnifiedInterruptResolver
impl Send for UnifiedInterruptResolver
impl Sync for UnifiedInterruptResolver
impl Unpin for UnifiedInterruptResolver
impl UnsafeUnpin for UnifiedInterruptResolver
impl !UnwindSafe for UnifiedInterruptResolver
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