Enum framing::Inbound
zaun_community_protocol::framing::Inbound · Enum
pub enum Inbound<'a> { … }What an inbound transport text is.
Variants
Section titled “Variants”NotProtocol
Section titled “NotProtocol”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.
UnknownPrefix
Section titled “UnknownPrefix”Starts with zaun: but the frame prefix is unknown (zaun:2: …): answer
UNSUPPORTED_VERSION when possible, otherwise ignore.
MalformedFragment
Section titled “MalformedFragment”zaun:1f: with a malformed header (bad id, leading zeros, index ≥ count, …).
Whole(&'a str)
Section titled “Whole(&'a str)”A whole envelope: its JSON text, to be parsed as an envelope.
Fragment(Fragment<'a>)
Section titled “Fragment(Fragment<'a>)”A fragment, to be pushed into the connection’s reassembler.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Eq, PartialEq, StructuralPartialEq