Struct nc::types::kernel_timex_t

source ·
#[repr(C)]
pub struct kernel_timex_t {
Show 20 fields pub modes: u32, pub offset: i64, pub freq: i64, pub maxerror: i64, pub esterror: i64, pub status: i32, pub constant: i64, pub precision: i64, pub tolerance: i64, pub time: kernel_timex_timeval_t, pub tick: i64, pub ppsfreq: i64, pub jitter: i64, pub shift: i32, pub stabil: i64, pub jitcnt: i64, pub calcnt: i64, pub errcnt: i64, pub stbcnt: i64, pub tail: i32, /* private fields */
}

Fields§

§modes: u32

mode selector

§offset: i64

time offset (usec)

§freq: i64

frequency offset (scaled ppm)

§maxerror: i64

maximum error (usec)

§esterror: i64

estimated error (usec)

§status: i32

clock command/status

§constant: i64

pll time constant

§precision: i64

clock precision (usec) (read only)

§tolerance: i64

clock frequency tolerance (ppm) (read only)

§time: kernel_timex_timeval_t

(read only, except for ADJ_SETOFFSET)

§tick: i64

(modified) usecs between clock ticks

§ppsfreq: i64

pps frequency (scaled ppm) (ro)

§jitter: i64

pps jitter (us) (ro)

§shift: i32

interval duration (s) (shift) (ro)

§stabil: i64

pps stability (scaled ppm) (ro)

§jitcnt: i64

jitter limit exceeded (ro)

§calcnt: i64

calibration intervals (ro)

§errcnt: i64

calibration errors (ro)

§stbcnt: i64

stability limit exceeded (ro)

§tail: i32

TAI offset (ro)

Trait Implementations§

source§

impl Clone for kernel_timex_t

source§

fn clone(&self) -> kernel_timex_t

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_timex_t

source§

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

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

impl Default for kernel_timex_t

source§

fn default() -> kernel_timex_t

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

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

Performs the conversion.