[−][src]Struct input_linux::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.
pub fn deref(&self) -> &Self::Target
[src]
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]
pub fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for EventTime
[src]
pub fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<EventTime> for EventTime
[src]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<EventTime> for EventTime
[src]
Auto Trait Implementations
impl RefUnwindSafe for EventTime
impl Send for EventTime
impl Sync for EventTime
impl Unpin for EventTime
impl UnwindSafe for EventTime
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,