#[non_exhaustive]pub enum TimeScale {
TAI,
TT,
ET,
TDB,
UTC,
GPST,
GST,
BDT,
QZSST,
}Expand description
Enum of the different time systems available
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
TAI
TAI is the representation of an Epoch internally
TT
Terrestrial Time (TT) (previously called Terrestrial Dynamical Time (TDT))
ET
Ephemeris Time as defined by SPICE (slightly different from true TDB)
TDB
Dynamic Barycentric Time (TDB) (higher fidelity SPICE ephemeris time)
UTC
Universal Coordinated Time
GPST
GPS Time scale whose reference epoch is UTC midnight between 05 January and 06 January 1980; cf. https://gssc.esa.int/navipedia/index.php/Time_References_in_GNSS#GPS_Time_.28GPST.29. |UTC - TAI| = 19 Leap Seconds on that day.
GST
Galileo Time scale
BDT
BeiDou Time scale
QZSST
QZSS Time scale has the same properties as GPST but with dedicated clocks
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TimeScale
impl<'de> Deserialize<'de> for TimeScale
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeScale, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeScale, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<u8> for TimeScale
Allows conversion of a u8 into a TimeSystem.
Mapping: 1: TT; 2: ET; 3: TDB; 4: UTC; 5: GPST; 6: GST; 7: BDT; 8: QZSST; anything else: TAI
impl From<u8> for TimeScale
Allows conversion of a u8 into a TimeSystem. Mapping: 1: TT; 2: ET; 3: TDB; 4: UTC; 5: GPST; 6: GST; 7: BDT; 8: QZSST; anything else: TAI
Source§impl Ord for TimeScale
impl Ord for TimeScale
Source§impl PartialOrd for TimeScale
impl PartialOrd for TimeScale
Source§impl Serialize for TimeScale
impl Serialize for TimeScale
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for TimeScale
impl Eq for TimeScale
impl StructuralPartialEq for TimeScale
Auto Trait Implementations§
impl Freeze for TimeScale
impl RefUnwindSafe for TimeScale
impl Send for TimeScale
impl Sync for TimeScale
impl Unpin for TimeScale
impl UnwindSafe for TimeScale
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more