Enum zenoh_protocol::proto::FramePayload
source · pub enum FramePayload {
Fragment {
buffer: ZSlice,
is_final: bool,
},
Messages {
messages: Vec<ZenohMessage>,
},
}Variants§
Fragment
The Payload of a fragmented Frame.
7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+
~ payload bytes ~
+---------------+
Messages
Fields
§
messages: Vec<ZenohMessage>The Payload of a batched Frame.
7 6 5 4 3 2 1 0
+-+-+-+-+-+-+-+-+
~ ZenohMessage ~
+---------------+
~ ... ~ - Additional complete Zenoh messages.
+---------------+
NOTE: A batched Frame must contain at least one complete Zenoh message.
There is no upper limit to the number of Zenoh messages that can
be batched together in the same frame.
Trait Implementations§
source§impl Clone for FramePayload
impl Clone for FramePayload
source§fn clone(&self) -> FramePayload
fn clone(&self) -> FramePayload
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 FramePayload
impl Debug for FramePayload
source§impl PartialEq<FramePayload> for FramePayload
impl PartialEq<FramePayload> for FramePayload
source§fn eq(&self, other: &FramePayload) -> bool
fn eq(&self, other: &FramePayload) -> bool
This method tests for
self and other values to be equal, and is used
by ==.