Enum gpiocdev::line::EventClock
source · [−]pub enum EventClock {
Monotonic,
Realtime,
Hte,
}
Expand description
The available clock sources for EdgeEvent
timestamps.
Variants
Monotonic
The CLOCK_MONOTONIC is used as the source for edge event timestamps.
This is the default for ABI v2.
Realtime
The CLOCK_REALTIME is used as the source for edge event timestamps.
Hte
The hardware timestamp engine provides event timestamps.
This source requires a Linux kernel v5.19 or later with CONFIG_HTE enabled and suitable supporting hardware.
Trait Implementations
sourceimpl Clone for EventClock
impl Clone for EventClock
sourcefn clone(&self) -> EventClock
fn clone(&self) -> EventClock
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 EventClock
impl Debug for EventClock
sourceimpl Default for EventClock
impl Default for EventClock
sourceimpl From<LineFlags> for EventClock
impl From<LineFlags> for EventClock
sourceimpl PartialEq<EventClock> for EventClock
impl PartialEq<EventClock> for EventClock
sourcefn eq(&self, other: &EventClock) -> bool
fn eq(&self, other: &EventClock) -> bool
impl Copy for EventClock
impl Eq for EventClock
impl StructuralEq for EventClock
impl StructuralPartialEq for EventClock
Auto Trait Implementations
impl RefUnwindSafe for EventClock
impl Send for EventClock
impl Sync for EventClock
impl Unpin for EventClock
impl UnwindSafe for EventClock
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