Struct evdev_rs::TimeVal[][src]

pub struct TimeVal {
    pub tv_sec: time_t,
    pub tv_usec: suseconds_t,
}

Fields

tv_sec: time_ttv_usec: suseconds_t

Implementations

impl TimeVal[src]

pub fn new(tv_sec: time_t, tv_usec: suseconds_t) -> TimeVal[src]

pub fn from_raw(timeval: &timeval) -> TimeVal[src]

pub fn as_raw(&self) -> timeval[src]

Trait Implementations

impl Clone for TimeVal[src]

impl Copy for TimeVal[src]

impl Debug for TimeVal[src]

impl<'de> Deserialize<'de> for TimeVal[src]

impl Eq for TimeVal[src]

impl Hash for TimeVal[src]

impl Ord for TimeVal[src]

impl PartialEq<TimeVal> for TimeVal[src]

impl PartialOrd<TimeVal> for TimeVal[src]

impl Serialize for TimeVal[src]

impl StructuralEq for TimeVal[src]

impl StructuralPartialEq for TimeVal[src]

impl TryFrom<SystemTime> for TimeVal[src]

type Error = SystemTimeError

The type returned in the event of a conversion error.

impl TryInto<SystemTime> for TimeVal[src]

type Error = ()

The type returned in the event of a conversion error.

fn try_into(self) -> Result<SystemTime, Self::Error>[src]

Fails if TimeVal.tv_usec is >= 10^6 or if the TimeVal is outside the range of SystemTime

Auto Trait Implementations

impl RefUnwindSafe for TimeVal

impl Send for TimeVal

impl Sync for TimeVal

impl Unpin for TimeVal

impl UnwindSafe for TimeVal

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.