[][src]Struct input_linux::EventTime

#[repr(C)]pub struct EventTime(_);

An event timestamp.

Implementations

impl EventTime[src]

pub const fn new(secs: i64, usecs: i64) -> Self[src]

Create a new timestamp.

pub const fn from_timeval(time: timeval) -> Self[src]

Create a timestamp given a libc timeval.

pub const fn seconds(&self) -> i64[src]

The timestamp represented as seconds since an epoch.

pub fn set_seconds(&mut self, value: i64)[src]

Set the seconds component of the timestamp.

pub const fn microseconds(&self) -> i64[src]

The microseconds component of the seconds.

This is meant to be modulo one second, though any value is technically valid.

pub fn set_microseconds(&mut self, value: i64)[src]

Set the microseconds component of the timestamp.

pub const fn into_inner(self) -> timeval[src]

The inner libc type.

Trait Implementations

impl AsRef<timeval> for EventTime[src]

impl Clone for EventTime[src]

impl Copy for EventTime[src]

impl Debug for EventTime[src]

impl Default for EventTime[src]

impl Deref for EventTime[src]

type Target = timeval

The resulting type after dereferencing.

impl DerefMut for EventTime[src]

impl Eq for EventTime[src]

impl<'a> From<&'a mut timeval> for &'a mut EventTime[src]

impl<'a> From<&'a timeval> for &'a EventTime[src]

impl From<EventTime> for timeval[src]

impl From<timeval> for EventTime[src]

impl Hash for EventTime[src]

impl Ord for EventTime[src]

impl PartialEq<EventTime> for EventTime[src]

impl PartialOrd<EventTime> for EventTime[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.