Struct zenoh_protocol::proto::ReplyContext[][src]

pub struct ReplyContext {
    pub is_final: bool,
    pub qid: ZInt,
    pub source_kind: ZInt,
    pub replier_id: Option<PeerId>,
}

ReplyContext decorator

The **ReplyContext** is a message decorator for either:
  - the **Data** messages that result from a query
  - or a **Unit** message in case the message is a
    SOURCE_FINAL or REPLY_FINAL.
 The **replier-id** (eval or storage id) is represented as a byte-array.

 7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+
|X|X|F|  R_CTX  |
+-+-+-+---------+
~      qid      ~
+---------------+
~  source_kind  ~
+---------------+
~   replier_id  ~ if F==0
+---------------+

- if F==1 then the message is a REPLY_FINAL

Fields

is_final: boolqid: ZIntsource_kind: ZIntreplier_id: Option<PeerId>

Implementations

impl ReplyContext[src]

pub fn make(
    qid: ZInt,
    source_kind: ZInt,
    replier_id: Option<PeerId>
) -> ReplyContext
[src]

Trait Implementations

impl Clone for ReplyContext[src]

impl Debug for ReplyContext[src]

impl PartialEq<ReplyContext> for ReplyContext[src]

impl StructuralPartialEq for ReplyContext[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>,