Struct zenoh_protocol::proto::RoutingContext
source · pub struct RoutingContext {
pub tree_id: ZInt,
}Expand description
– RoutingContext decorator
The **RoutingContext** is a message decorator containing
informations for routing the concerned message.
7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+
|X|X|X| RT_CTX |
+-+-+-+---------+
~ tid ~
+---------------+
Fields§
§tree_id: ZIntImplementations§
source§impl RoutingContext
impl RoutingContext
pub fn new(tree_id: ZInt) -> RoutingContext
Trait Implementations§
source§impl Clone for RoutingContext
impl Clone for RoutingContext
source§fn clone(&self) -> RoutingContext
fn clone(&self) -> RoutingContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for RoutingContext
impl Debug for RoutingContext
source§impl PartialEq<RoutingContext> for RoutingContext
impl PartialEq<RoutingContext> for RoutingContext
source§fn eq(&self, other: &RoutingContext) -> bool
fn eq(&self, other: &RoutingContext) -> bool
This method tests for
self and other values to be equal, and is used
by ==.