pub struct InterruptReason {
pub rx: bool,
pub tx: bool,
pub dma_error: bool,
pub time_passed: bool,
}
Expand description
A summary of the reasons for the occurence of an interrupt
Fields§
§rx: bool
A packet has arrived and is ready for processing.
tx: bool
A packet was sent, and a TX slot has freed up.
dma_error: bool
A DMA error occured.
time_passed: bool
The target time configured for PTP has passed.
Trait Implementations§
Source§impl Clone for InterruptReason
impl Clone for InterruptReason
Source§fn clone(&self) -> InterruptReason
fn clone(&self) -> InterruptReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InterruptReason
impl Debug for InterruptReason
Source§impl Format for InterruptReason
impl Format for InterruptReason
Source§impl PartialEq for InterruptReason
impl PartialEq for InterruptReason
impl Copy for InterruptReason
impl StructuralPartialEq for InterruptReason
Auto Trait Implementations§
impl Freeze for InterruptReason
impl RefUnwindSafe for InterruptReason
impl Send for InterruptReason
impl Sync for InterruptReason
impl Unpin for InterruptReason
impl UnwindSafe for InterruptReason
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