pub struct AcpiInterruptCallback { /* private fields */ }
Expand description
A callback to notify ACPICA about an interrupt.
The call
method should be used to run the callback from the associated interrupt handler.
Implementations§
Source§impl AcpiInterruptCallback
impl AcpiInterruptCallback
Sourcepub unsafe fn call(&mut self) -> AcpiInterruptHandledStatus
pub unsafe fn call(&mut self) -> AcpiInterruptHandledStatus
Calls the callback
§Safety
This method may only be called from the interrupt handler this callback is for. An interrupt vector will have been provided along with this object, and this method should only be called from the interrupt handler for that interrupt vector.
Sourcepub fn is_tag(&self, tag: &AcpiInterruptCallbackTag) -> bool
pub fn is_tag(&self, tag: &AcpiInterruptCallbackTag) -> bool
Checks whether this callback matches the given tag
Trait Implementations§
Source§impl Debug for AcpiInterruptCallback
impl Debug for AcpiInterruptCallback
Source§impl Ord for AcpiInterruptCallback
impl Ord for AcpiInterruptCallback
Source§fn cmp(&self, other: &AcpiInterruptCallback) -> Ordering
fn cmp(&self, other: &AcpiInterruptCallback) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AcpiInterruptCallback
impl PartialEq for AcpiInterruptCallback
Source§impl PartialOrd for AcpiInterruptCallback
impl PartialOrd for AcpiInterruptCallback
impl Eq for AcpiInterruptCallback
impl Send for AcpiInterruptCallback
impl StructuralPartialEq for AcpiInterruptCallback
Auto Trait Implementations§
impl Freeze for AcpiInterruptCallback
impl RefUnwindSafe for AcpiInterruptCallback
impl !Sync for AcpiInterruptCallback
impl Unpin for AcpiInterruptCallback
impl UnwindSafe for AcpiInterruptCallback
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