Skip to content

Struct framing::Fragment

zaun_community_protocol::framing::Fragment · Struct

pub struct Fragment<'a> { … }

One fragment message, borrowing its chunk from the received text.

The reassembly this fragment belongs to.

Position, 0 ≤ index < count.

Number of fragments in the frame, 2 ≤ count ≤ 64 syntactically; over 32 is discarded.

A piece of the envelope JSON text (valid UTF-8 by construction).

Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page