Struct framing::Fragment
zaun_community_protocol::framing::Fragment · Struct
pub struct Fragment<'a> { … }One fragment message, borrowing its chunk from the received text.
Fields
Section titled “Fields”frag_id: FragId
Section titled “frag_id: FragId”The reassembly this fragment belongs to.
index: usize
Section titled “index: usize”Position, 0 ≤ index < count.
count: usize
Section titled “count: usize”Number of fragments in the frame, 2 ≤ count ≤ 64 syntactically; over 32 is discarded.
chunk: &'a str
Section titled “chunk: &'a str”A piece of the envelope JSON text (valid UTF-8 by construction).
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq