[−][src]Struct zenoh_protocol::proto::Attachment
NOTE: 16 bits (2 bytes) may be prepended to the serialized message indicating the total lenght in bytes of the message, resulting in the maximum lenght of a message being 65_536 bytes. This is necessary in those stream-oriented transports (e.g., TCP) that do not preserve the boundary of the serialized messages. The length is encoded as little-endian. In any case, the lenght of a message must not exceed 65_535 bytes.
The Attachment can decorate any message (i.e., SessionMessage and ZenohMessage) and it allows to append to the message any additional information. Since the information contained in the Attachement is relevant only to the layer that provided them (e.g., Session, Zenoh, User) it is the duty of that layer to serialize and de-serialize the attachment whenever deemed necessary.
7 6 5 4 3 2 1 0 +-+-+-+-+-+-+-+-+ | ENC | ATTCH | +-+-+-+---------+ ~ Attachment ~ +---------------+
ENC values:
- 0x00 => Zenoh Properties
Fields
encoding: u8
buffer: RBuf
Implementations
impl Attachment
[src]
pub fn make(encoding: u8, buffer: RBuf) -> Attachment
[src]
Trait Implementations
impl Clone for Attachment
[src]
fn clone(&self) -> Attachment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Attachment
[src]
impl PartialEq<Attachment> for Attachment
[src]
fn eq(&self, other: &Attachment) -> bool
[src]
fn ne(&self, other: &Attachment) -> bool
[src]
impl StructuralPartialEq for Attachment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,