#[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§
Source§impl LineInfoChangeEvent
impl LineInfoChangeEvent
Sourcepub fn from_slice(d: &[u64]) -> Result<&LineInfoChangeEvent>
pub fn from_slice(d: &[u64]) -> 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§
Source§impl Clone for LineInfoChangeEvent
impl Clone for LineInfoChangeEvent
Source§fn clone(&self) -> LineInfoChangeEvent
fn clone(&self) -> LineInfoChangeEvent
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 LineInfoChangeEvent
impl Debug for LineInfoChangeEvent
Source§impl PartialEq for LineInfoChangeEvent
impl PartialEq for LineInfoChangeEvent
impl Eq for LineInfoChangeEvent
impl StructuralPartialEq for LineInfoChangeEvent
Auto Trait Implementations§
impl Freeze for LineInfoChangeEvent
impl RefUnwindSafe for LineInfoChangeEvent
impl Send for LineInfoChangeEvent
impl Sync for LineInfoChangeEvent
impl Unpin for LineInfoChangeEvent
impl UnwindSafe for LineInfoChangeEvent
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