Skip to main content

PrimarySource

Enum PrimarySource 

Source
#[repr(u32)]
pub enum PrimarySource {
Show 34 variants Goes = 1_196_377_427, Gps = 1_196_446_464, Cdma = 1_128_549_697, Gal = 1_195_461_632, Pps = 1_347_441_408, Irig = 1_230_129_479, Wwvb = 1_465_341_506, Dcf = 1_145_259_520, Hgb = 1_212_629_504, Msf = 1_297_303_040, Jjy = 1_246_386_432, Lorc = 1_280_266_819, Tdf = 1_413_760_512, Chu = 1_128_813_824, Wwv = 1_465_341_440, Wwvh = 1_465_341_512, Nist = 1_313_428_308, Acts = 1_094_931_539, Usno = 1_431_522_895, Ptb = 1_347_699_200, Goog = 1_196_379_975, Locl = 1_280_262_988, Cesm = 1_128_616_781, Rbdm = 1_380_074_573, Omeg = 1_330_464_071, Dcn = 1_145_261_568, Tsp = 1_414_746_112, Dts = 1_146_376_960, Atom = 1_096_044_365, Vlf = 1_447_839_232, Opps = 1_330_663_507, Free = 1_179_796_805, Init = 1_229_867_348, Null = 0,
}
Expand description

A four-octet, left-justified, zero-padded ASCII string assigned to the reference clock.

The authoritative list of Reference Identifiers is maintained by IANA; however, any string beginning with the ASCII character “X” is reserved for unregistered experimentation and development.

All variants represent standard reference clock identifiers as four-character ASCII codes. See the IANA NTP Parameters registry for the complete list of reference identifiers.

Variants§

§

Goes = 1_196_377_427

Geosynchronous Orbit Environment Satellite.

§

Gps = 1_196_446_464

Global Position System.

§

Cdma = 1_128_549_697

Code Division Multiple Access.

§

Gal = 1_195_461_632

§

Pps = 1_347_441_408

§

Irig = 1_230_129_479

§

Wwvb = 1_465_341_506

§

Dcf = 1_145_259_520

§

Hgb = 1_212_629_504

§

Msf = 1_297_303_040

§

Jjy = 1_246_386_432

§

Lorc = 1_280_266_819

§

Tdf = 1_413_760_512

§

Chu = 1_128_813_824

§

Wwv = 1_465_341_440

§

Wwvh = 1_465_341_512

§

Nist = 1_313_428_308

§

Acts = 1_094_931_539

§

Usno = 1_431_522_895

§

Ptb = 1_347_699_200

§

Goog = 1_196_379_975

§

Locl = 1_280_262_988

§

Cesm = 1_128_616_781

§

Rbdm = 1_380_074_573

§

Omeg = 1_330_464_071

§

Dcn = 1_145_261_568

§

Tsp = 1_414_746_112

§

Dts = 1_146_376_960

§

Atom = 1_096_044_365

§

Vlf = 1_447_839_232

§

Opps = 1_330_663_507

§

Free = 1_179_796_805

§

Init = 1_229_867_348

§

Null = 0

Implementations§

Source§

impl PrimarySource

Source

pub fn bytes(&self) -> [u8; 4]

The bytestring representation of the primary source.

Trait Implementations§

Source§

impl Clone for PrimarySource

Source§

fn clone(&self) -> PrimarySource

Returns a duplicate 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 PrimarySource

Source§

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

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

impl Display for PrimarySource

Source§

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

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

impl Hash for PrimarySource

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for PrimarySource

Source§

fn eq(&self, other: &PrimarySource) -> 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 TryFrom<u32> for PrimarySource

Source§

type Error = ()

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

fn try_from(value: u32) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for PrimarySource

Source§

impl Eq for PrimarySource

Source§

impl StructuralPartialEq for PrimarySource

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> CloneToUninit for T
where T: Clone,

Source§

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

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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,

Source§

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> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

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>,

Source§

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.