#[repr(C, packed)]pub struct TAI64 {
pub tai64n: i64,
}
Expand description
reg.udral.physics.time.TAI64.0.1
Fixed size 8 bytes
Standard TAI64N time label (https://cr.yp.to/libtai/tai64.html). Quote from the source:
TAI stands for Temps Atomique International, the current international real-time standard. One TAI second is defined as the duration of 9192631770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the cesium atom. TAI also specifies a frame of reference. Further discussion of special relativity is outside the scope of this document.
A TAI64 label is an integer between 0 and 2^64 referring to a particular second of real time. Integer s refers to:
- the TAI second beginning exactly 2^62 - s seconds before the beginning of 1970 TAI,
if s is between 0 inclusive and 2^62 exclusive; or
- the TAI second beginning exactly s - 2^62 seconds after the beginning of 1970 TAI,
if s is between 2^62 inclusive and 2^63 exclusive.
Fields§
§tai64n: i64
[nanosecond] Nanoseconds elapsed since 1970-01-01T00:00:00Z TAI.
saturated int64
Always aligned, size 64 bits
Trait Implementations§
source§impl AsBytes for TAI64where
i64: AsBytes,
impl AsBytes for TAI64where i64: AsBytes,
source§fn as_bytes_mut(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8]where Self: FromBytes,
source§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§impl Deserialize for TAI64
impl Deserialize for TAI64
source§fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError>where
Self: Sized,
fn deserialize(cursor: &mut ReadCursor<'_>) -> Result<Self, DeserializeError>where Self: Sized,
source§fn deserialize_zero_copy(cursor: &mut ReadCursor<'_>) -> Selfwhere
Self: Sized + AsBytes + FromBytes,
fn deserialize_zero_copy(cursor: &mut ReadCursor<'_>) -> Selfwhere Self: Sized + AsBytes + FromBytes,
source§fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>where
Self: Sized,
fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self, DeserializeError>where Self: Sized,
deserialize
source§impl FromBytes for TAI64where
i64: FromBytes,
impl FromBytes for TAI64where i64: FromBytes,
source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Self
from zeroed bytes.source§impl Serialize for TAI64
impl Serialize for TAI64
source§fn size_bits(&self) -> usize
fn size_bits(&self) -> usize
source§fn serialize(&self, cursor: &mut WriteCursor<'_>)
fn serialize(&self, cursor: &mut WriteCursor<'_>)
source§fn serialize_to_bytes(&self, bytes: &mut [u8])
fn serialize_to_bytes(&self, bytes: &mut [u8])
serialize