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, HBG = 1_212_303_104, 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

ascii chars packed into a u32 for matching a raw buffer

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

§

HBG = 1_212_303_104

§

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 const fn from_repr(discriminant: u32) -> Option<PrimarySource>

Try to create Self from the raw representation

Trait Implementations§

Source§

impl Clone for PrimarySource

Source§

fn clone(&self) -> PrimarySource

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PrimarySource

Source§

impl Debug for PrimarySource

Source§

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

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

impl Default for PrimarySource

Source§

fn default() -> PrimarySource

Returns the “default value” for a type. 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 PartialEq for PrimarySource

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
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.