Struct timeval

#[repr(C)]
pub struct timeval { pub tv_sec: time_t, pub tv_usec: suseconds_t }

Fields

tv_sec: time_t
tv_usec: suseconds_t

Trait Implementations

impl Clone for timeval

fn clone(&self) -> timeval

impl Copy for timeval

impl Debug for timeval

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for timeval

fn default() -> timeval

impl Eq for timeval

impl Hash for timeval

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for timeval

fn eq(&self, other: &timeval) -> bool

impl StructuralPartialEq for timeval

Auto Trait Implementations

impl Freeze for timeval

impl RefUnwindSafe for timeval

impl Send for timeval

impl Sync for timeval

impl Unpin for timeval

impl UnsafeUnpin for timeval

impl UnwindSafe for timeval

Blanket Implementations

impl<T> Any for timeval where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for timeval where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for timeval where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for timeval where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for timeval

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for timeval where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for timeval where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for timeval where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>