Skip to main content

EtType

Enum EtType 

Source
pub enum EtType {
    e5(i32),
    e6(i64),
    e7(i128),
    f5(f32),
    f6(f64),
}
Expand description

Eagle Time type - represents time values as oscillation counts.

Binary format: [e][size][value...]

  • [e] = Eagle Time marker
  • [size] = 5/6/7 (base36 bit-width digit: 2^5=32, 2^6=64, 2^7=128 bits)
  • [value] = fixed-width big-endian integer

Oscillation counts (canonical):

  • Each count = one complete 21cm hydrogen-1 hyperfine transition
  • Precision: 704.032 picoseconds per oscillation
  • e5 (i32): ±1.5 years range — short intervals, packed structs
  • e6 (i64): ±206 years range — standard timestamps (covers 1763–2175)
  • e7 (i128): astronomical/geological range — future use
  • Positive = after epoch, negative = before epoch

Deprecated float variants (legacy, readers accept, writers must not emit):

  • ef5 (f32): ~2 minute effective precision — never use in new code
  • ef6 (f64): ~200 nanosecond effective precision — never use in new code

Variants§

§

e5(i32)

32-bit oscillation count. Wire: e5 + 4 bytes i32 BE.

§

e6(i64)

64-bit oscillation count. Wire: e6 + 8 bytes i64 BE. Standard form.

§

e7(i128)

128-bit oscillation count. Wire: e7 + 16 bytes i128 BE.

§

f5(f32)

👎Deprecated since 0.3.5:

Use EtType::e6 (oscillation count)

Deprecated: seconds as f32. Wire: ef5 + 4 bytes. Use e6 instead.

§

f6(f64)

👎Deprecated since 0.3.5:

Use EtType::e6 (oscillation count)

Deprecated: seconds as f64. Wire: ef6 + 8 bytes. Use e6 instead.

Trait Implementations§

Source§

impl Clone for EtType

Source§

fn clone(&self) -> EtType

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 Debug for EtType

Source§

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

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

impl PartialEq for EtType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StructuralPartialEq for EtType

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