Struct gpiocdev_uapi::v1::LineEdgeEvent
source · #[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: u64The best estimate of time of event occurrence, in nanoseconds.
kind: LineEdgeEventKindThe 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 copy 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 LineEdgeEvent
impl Debug for LineEdgeEvent
source§impl PartialEq for LineEdgeEvent
impl PartialEq for LineEdgeEvent
source§fn eq(&self, other: &LineEdgeEvent) -> bool
fn eq(&self, other: &LineEdgeEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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