rustix::time

Type Alias Timespec

Source
pub type Timespec = __kernel_timespec;
Expand description

struct timespec

Aliased Type§

struct Timespec {
    pub tv_sec: i64,
    pub tv_nsec: i64,
}

Fields§

§tv_sec: i64§tv_nsec: i64

Trait Implementations

Source§

impl Clone for __kernel_timespec

Source§

fn clone(&self) -> __kernel_timespec

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for __kernel_timespec

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for __kernel_timespec

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for __kernel_timespec

Source§

impl Eq for __kernel_timespec