Type Alias rustix::fs::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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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