Struct zenoh::net::DataInfo[][src]

pub struct DataInfo {
    pub source_id: Option<PeerId>,
    pub source_sn: Option<ZInt>,
    pub first_router_id: Option<PeerId>,
    pub first_router_sn: Option<ZInt>,
    pub timestamp: Option<Timestamp>,
    pub kind: Option<ZInt>,
    pub encoding: Option<ZInt>,
}

DataInfo

DataInfo data structure is optionally included in Data messages

 7 6 5 4 3 2 1 0
+-+-+-+---------+
~X|G|F|E|D|C|B|A~ -- encoded as ZInt
+---------------+
~   source_id   ~ if A==1
+---------------+
~   source_sn   ~ if B==1
+---------------+
~first_router_id~ if C==1
+---------------+
~first_router_sn~ if D==1
+---------------+
~   timestamp   ~ if E==1
+---------------+
~      kind     ~ if F==1
+---------------+
~   encoding    ~ if G==1
+---------------+

Fields

source_id: Option<PeerId>source_sn: Option<ZInt>first_router_id: Option<PeerId>first_router_sn: Option<ZInt>timestamp: Option<Timestamp>kind: Option<ZInt>encoding: Option<ZInt>

Trait Implementations

impl Clone for DataInfo[src]

impl Debug for DataInfo[src]

impl PartialEq<DataInfo> for DataInfo[src]

impl PartialOrd<DataInfo> for DataInfo[src]

impl StructuralPartialEq for DataInfo[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> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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