Struct rustdds::dds::data_types::DDSTimestamp[][src]

pub struct DDSTimestamp { /* fields omitted */ }

Quoting RTPS 2.3 spec 9.3.2.1:

The representation of the time is the one defined by the IETF Network Time Protocol (NTP) Standard (IETF RFC 1305). In this representation, time is expressed in seconds and fraction of seconds using the formula: time = seconds + (fraction / 2^(32))

The time origin is represented by the reserved value TIME_ZERO and corresponds to the UNIX prime epoch 0h, 1 January 1970.

Note : NTP does not use the Unix epoch (1970-01-01 00:00) but the beginning of the 20th century epoch (1900-01-01 00:00) insted. So these timestamps are not the same as in NTP. This time representation is used in RTPS messages. This is called Time_t in the RTPS spec.

Implementations

impl Timestamp[src]

Trait Implementations

impl Clone for Timestamp[src]

impl Copy for Timestamp[src]

impl Debug for Timestamp[src]

impl<'de> Deserialize<'de> for Timestamp[src]

impl Eq for Timestamp[src]

impl Ord for Timestamp[src]

impl PartialEq<Timestamp> for Timestamp[src]

impl PartialOrd<Timestamp> for Timestamp[src]

impl<'a_, C_: Context> Readable<'a_, C_> for Timestamp[src]

impl Serialize for Timestamp[src]

impl StructuralEq for Timestamp[src]

impl StructuralPartialEq for Timestamp[src]

impl Sub<Duration> for Timestamp[src]

type Output = Timestamp

The resulting type after applying the - operator.

impl Sub<Timestamp> for Timestamp[src]

type Output = Duration

The resulting type after applying the - operator.

impl<C_: Context> Writable<C_> for Timestamp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,