#[non_exhaustive]pub struct Irq {
pub id: u32,
pub level: bool,
}Expand description
An interrupt to be injected into a vCPU.
Number space and meaning depend on architecture:
- x86: vector 0..=255, with
level=truefor level-triggered. - aarch64: SPI/PPI/SGI ID,
levelignored (GIC line is implicit).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: u32The architecture-specific interrupt identifier.
level: booltrue for level-triggered, false for edge-triggered.
Implementations§
Trait Implementations§
impl Copy for Irq
impl Eq for Irq
impl StructuralPartialEq for Irq
Auto Trait Implementations§
impl Freeze for Irq
impl RefUnwindSafe for Irq
impl Send for Irq
impl Sync for Irq
impl Unpin for Irq
impl UnsafeUnpin for Irq
impl UnwindSafe for Irq
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