pub struct LineEdgeEvent {
pub timestamp_ns: u64,
pub kind: u32,
pub offset: Offset,
pub seqno: u32,
pub line_seqno: u32,
/* private fields */
}Expand description
Information about an edge event on a requested line.
Fields§
§timestamp_ns: u64The best estimate of time of event occurrence, in nanoseconds.
By default the timestamp is read from CLOCK_MONOTONIC and is intended to allow the accurate measurement of the time between events. It does not provide the wall-clock time.
If the LineFlags::EVENT_CLOCK_REALTIME flag is set then the
timestamp is read from CLOCK_REALTIME.
kind: u32The event trigger identifier (LineEdgeEventKind)
offset: OffsetThe offset of the line that triggered the event.
seqno: u32The sequence number for this event in the sequence of events for all the lines in this line request.
line_seqno: u32The sequence number for this event in the sequence of events on this particular line.
Implementations§
Source§impl LineEdgeEvent
impl LineEdgeEvent
Sourcepub fn from_slice(d: &[u64]) -> Result<&LineEdgeEvent>
pub fn from_slice(d: &[u64]) -> Result<&LineEdgeEvent>
Read an edge event from a buffer.
The buffer is assumed to have been populated by a read of the line request File, so the content is initialised.
Trait Implementations§
Source§impl Clone for LineEdgeEvent
impl Clone for LineEdgeEvent
Source§fn clone(&self) -> LineEdgeEvent
fn clone(&self) -> LineEdgeEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more