Enum client::ProtocolError
zaun_community_protocol::client::ProtocolError · Enum
pub enum ProtocolError { … }Input ignored safely.
Variants
Section titled “Variants”NotProtocol
Section titled “NotProtocol”Text without the zaun: prefix.
UnknownPrefix
Section titled “UnknownPrefix”An unknown frame prefix (zaun:2: …).
MalformedFragment
Section titled “MalformedFragment”A malformed fragment header.
FragmentDiscarded(DiscardReason)
Section titled “FragmentDiscarded(DiscardReason)”A fragment reassembly was discarded.
TooLarge
Section titled “TooLarge”An envelope above max_frame.
MalformedEnvelope
Section titled “MalformedEnvelope”Not a valid response, event or batch envelope.
BadBatch
Section titled “BadBatch”A batch inside a batch, or a batch element for another community.
WrongVersion(u16)
Section titled “WrongVersion(u16)”An event whose v is not the negotiated version (dropped, the protocol).
WrongCommunity
Section titled “WrongCommunity”An event for another community than the session’s.
MalformedEvent(String)
Section titled “MalformedEvent(String)”A known event type with a malformed body; its cursor still advances.
UncorrelatedError(ErrorBody)
Section titled “UncorrelatedError(ErrorBody)”An error response with request_id: null.
NotReady
Section titled “NotReady”An event before a verified welcome or after a failed one (dropped).
BindingMismatch
Section titled “BindingMismatch”A binding response names another community than the one requested; not bound.
AutoSend(ClientError)
Section titled “AutoSend(ClientError)”An automatic sync.resume or sync.ack could not be prepared.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Eq, PartialEq, StructuralPartialEq