pub struct InterruptState {
pub resource: ResourceId,
pub sequence: u64,
pub count: u64,
pub last_timestamp_ns: i64,
pub coalesced_count: u64,
/* private fields */
}Expand description
State tracking for one interrupt resource.
Fields§
§resource: ResourceId§sequence: u64§count: u64§last_timestamp_ns: i64§coalesced_count: u64Implementations§
Source§impl InterruptState
impl InterruptState
pub fn new(resource: ResourceId) -> Self
Sourcepub fn current_event(&self) -> InterruptEvent
pub fn current_event(&self) -> InterruptEvent
Current event snapshot.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InterruptState
impl !Sync for InterruptState
impl !UnwindSafe for InterruptState
impl Freeze for InterruptState
impl Send for InterruptState
impl Unpin for InterruptState
impl UnsafeUnpin for InterruptState
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