Skip to content

Enum framing::Inbound

zaun_community_protocol::framing::Inbound · Enum

pub enum Inbound<'a> { … }

What an inbound transport text is.

Does not start with zaun:: not a protocol message. Never parse it as a command; count it against the command rate limit; on an unbound connection send one plain notice.

Starts with zaun: but the frame prefix is unknown (zaun:2: …): answer UNSUPPORTED_VERSION when possible, otherwise ignore.

zaun:1f: with a malformed header (bad id, leading zeros, index ≥ count, …).

A whole envelope: its JSON text, to be parsed as an envelope.

A fragment, to be pushed into the connection’s reassembler.

Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page