Struct gpiocdev_uapi::v2::LineInfoChangeEvent
source · [−]#[repr(C)]pub struct LineInfoChangeEvent {
pub info: LineInfo,
pub timestamp_ns: u64,
pub kind: LineInfoChangeKind,
/* private fields */
}
Expand description
An event indicating a change to the info for a line.
Fields
info: LineInfo
The new line info.
timestamp_ns: u64
The best estimate of time of event occurrence, in nanoseconds.
kind: LineInfoChangeKind
The trigger for the change.
Implementations
sourceimpl LineInfoChangeEvent
impl LineInfoChangeEvent
sourcepub fn from_slice(d: &[u8]) -> Result<&LineInfoChangeEvent>
pub fn from_slice(d: &[u8]) -> Result<&LineInfoChangeEvent>
Read an info change event from a buffer.
The buffer is assumed to have been populated by a read of the chip File, so the content is validated before being returned.
Trait Implementations
sourceimpl Clone for LineInfoChangeEvent
impl Clone for LineInfoChangeEvent
sourcefn clone(&self) -> LineInfoChangeEvent
fn clone(&self) -> LineInfoChangeEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LineInfoChangeEvent
impl Debug for LineInfoChangeEvent
sourceimpl PartialEq<LineInfoChangeEvent> for LineInfoChangeEvent
impl PartialEq<LineInfoChangeEvent> for LineInfoChangeEvent
sourcefn eq(&self, other: &LineInfoChangeEvent) -> bool
fn eq(&self, other: &LineInfoChangeEvent) -> bool
impl Eq for LineInfoChangeEvent
impl StructuralEq for LineInfoChangeEvent
impl StructuralPartialEq for LineInfoChangeEvent
Auto Trait Implementations
impl RefUnwindSafe for LineInfoChangeEvent
impl Send for LineInfoChangeEvent
impl Sync for LineInfoChangeEvent
impl Unpin for LineInfoChangeEvent
impl UnwindSafe for LineInfoChangeEvent
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