pub struct EdgeEvent {
pub timestamp_ns: u64,
pub kind: EdgeKind,
pub offset: Offset,
pub seqno: u32,
pub line_seqno: u32,
}
Expand description
The details of an edge detected on an input line.
ABI v1 does not provide the seqno nor line_seqno fields.
Fields
timestamp_ns: u64
The best estimate of time of event occurrence, in nanoseconds.
The interpretation of this field depends on line EventClock
configuration
and uAPI ABI version, and so is left raw here.
CLOCK_REALTIME can be converted to Timestamp
.
CLOCK_MONOTONIC is intended for comparing times between events and
should be converted to Duration
.
kind: EdgeKind
The event trigger identifier.
offset: Offset
The offset of the line that triggered the event.
seqno: u32
The sequence number for this event in the sequence of events for all the lines in this line request.
line_seqno: u32
The sequence number for this event in the sequence of events on this particular line.
Trait Implementations
sourceimpl From<&LineEdgeEvent> for EdgeEvent
impl From<&LineEdgeEvent> for EdgeEvent
sourcefn from(le: &LineEdgeEvent) -> Self
fn from(le: &LineEdgeEvent) -> Self
Converts to this type from the input type.
impl Eq for EdgeEvent
impl StructuralEq for EdgeEvent
impl StructuralPartialEq for EdgeEvent
Auto Trait Implementations
impl RefUnwindSafe for EdgeEvent
impl Send for EdgeEvent
impl Sync for EdgeEvent
impl Unpin for EdgeEvent
impl UnwindSafe for EdgeEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more