Struct input_linux::EventTime 
source · #[repr(C)]pub struct EventTime(_);Expand description
An event timestamp.
Implementations§
source§impl EventTime
 
impl EventTime
sourcepub const fn from_timeval(time: timeval) -> Self
 
pub const fn from_timeval(time: timeval) -> Self
Create a timestamp given a libc [timeval].
sourcepub fn set_seconds(&mut self, value: i64)
 
pub fn set_seconds(&mut self, value: i64)
Set the seconds component of the timestamp.
sourcepub const fn microseconds(&self) -> i64
 
pub const fn microseconds(&self) -> i64
The microseconds component of the seconds.
This is meant to be modulo one second, though any value is technically valid.
sourcepub fn set_microseconds(&mut self, value: i64)
 
pub fn set_microseconds(&mut self, value: i64)
Set the microseconds component of the timestamp.
sourcepub const fn into_inner(self) -> timeval
 
pub const fn into_inner(self) -> timeval
The inner libc [timeval].
Trait Implementations§
source§impl<'de> Deserialize<'de> for EventTime
 
impl<'de> Deserialize<'de> for EventTime
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for EventTime
 
impl Ord for EventTime
source§impl PartialEq<EventTime> for EventTime
 
impl PartialEq<EventTime> for EventTime
source§impl PartialOrd<EventTime> for EventTime
 
impl PartialOrd<EventTime> for EventTime
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read more