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.

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

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 Err = Unrepresentable<u32>

The error type produced by a failed conversion.
Source§

fn try_from(src: u32) -> Result<PrimarySource, Self::Err>

Convert the given value into the subject type.
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<Src, Scheme> ApproxFrom<Src, Scheme> for Src
where Scheme: ApproxScheme,

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>

Convert the given value into an approximately equivalent representation.
Source§

impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Src
where Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,

Source§

type Err = <Dst as ApproxFrom<Src, Scheme>>::Err

The error type produced by a failed conversion.
Source§

fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>

Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T

Source§

fn approx(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject with the default scheme.
Source§

fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject with a specific scheme.
Source§

impl<T> ConvUtil for T

Source§

fn approx_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst>,

Approximate the subject to a given type with the default scheme.
Source§

fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,

Approximate the subject to a given type with a specific scheme.
Source§

fn into_as<Dst>(self) -> Dst
where Self: Sized + Into<Dst>,

Convert the subject to a given type.
Source§

fn try_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + TryInto<Dst>,

Attempt to convert the subject to a given type.
Source§

fn value_as<Dst>(self) -> Result<Dst, Self::Err>
where Self: Sized + ValueInto<Dst>,

Attempt a value conversion of the subject to a given type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<Src> TryFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn try_from(src: Src) -> Result<Src, <Src as TryFrom<Src>>::Err>

Convert the given value into the subject type.
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<Src, Dst> TryInto<Dst> for Src
where Dst: TryFrom<Src>,

Source§

type Err = <Dst as TryFrom<Src>>::Err

The error type produced by a failed conversion.
Source§

fn try_into(self) -> Result<Dst, <Src as TryInto<Dst>>::Err>

Convert the subject into the destination type.
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.
Source§

impl<Src> ValueFrom<Src> for Src

Source§

type Err = NoError

The error type produced by a failed conversion.
Source§

fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>

Convert the given value into an exactly equivalent representation.
Source§

impl<Src, Dst> ValueInto<Dst> for Src
where Dst: ValueFrom<Src>,

Source§

type Err = <Dst as ValueFrom<Src>>::Err

The error type produced by a failed conversion.
Source§

fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>

Convert the subject into an exactly equivalent representation.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more