pub enum EventClock {
Realtime,
Monotonic,
}Expand description
Horloge des horodatages d’événements evdev (EVIOCSCLOCKID).
Variants§
Realtime
CLOCK_REALTIME (défaut kernel).
Monotonic
CLOCK_MONOTONIC (recommandé pour la corrélation d’entrées).
Implementations§
Source§impl EventClock
impl EventClock
Sourcepub const fn to_clockid(self) -> i32
pub const fn to_clockid(self) -> i32
clockid_t kernel correspondant (CLOCK_REALTIME=0,
CLOCK_MONOTONIC=1).
Trait Implementations§
Source§impl Clone for EventClock
impl Clone for EventClock
Source§fn clone(&self) -> EventClock
fn clone(&self) -> EventClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventClock
Source§impl Debug for EventClock
impl Debug for EventClock
impl Eq for EventClock
Source§impl PartialEq for EventClock
impl PartialEq for EventClock
impl StructuralPartialEq for EventClock
Auto Trait Implementations§
impl Freeze for EventClock
impl RefUnwindSafe for EventClock
impl Send for EventClock
impl Sync for EventClock
impl Unpin for EventClock
impl UnsafeUnpin for EventClock
impl UnwindSafe for EventClock
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