#[repr(C)]pub struct LineEdgeEvent {
pub timestamp_ns: u64,
pub kind: LineEdgeEventKind,
}
Expand description
Information about an edge event on a requested line.
Fields§
§timestamp_ns: u64
The best estimate of time of event occurrence, in nanoseconds.
kind: LineEdgeEventKind
The kind of line event.
Implementations§
Source§impl LineEdgeEvent
impl LineEdgeEvent
Sourcepub fn from_slice(d: &[u64]) -> Result<&LineEdgeEvent>
pub fn from_slice(d: &[u64]) -> Result<&LineEdgeEvent>
Read a LineEdgeEvent from a buffer.
The buffer is assumed to have been populated by a read of the line request File, so the content is validated before being returned.
Trait Implementations§
Source§impl Clone for LineEdgeEvent
impl Clone for LineEdgeEvent
Source§fn clone(&self) -> LineEdgeEvent
fn clone(&self) -> LineEdgeEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LineEdgeEvent
impl Debug for LineEdgeEvent
Source§impl PartialEq for LineEdgeEvent
impl PartialEq for LineEdgeEvent
impl Eq for LineEdgeEvent
impl StructuralPartialEq for LineEdgeEvent
Auto Trait Implementations§
impl Freeze for LineEdgeEvent
impl RefUnwindSafe for LineEdgeEvent
impl Send for LineEdgeEvent
impl Sync for LineEdgeEvent
impl Unpin for LineEdgeEvent
impl UnwindSafe for LineEdgeEvent
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