#[repr(C)]pub struct EventTime(/* private fields */);
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 PartialOrd for EventTime
impl PartialOrd for EventTime
impl Copy for EventTime
impl Eq for EventTime
Auto Trait Implementations§
impl Freeze for EventTime
impl RefUnwindSafe for EventTime
impl Send for EventTime
impl Sync for EventTime
impl Unpin for EventTime
impl UnwindSafe for EventTime
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