Enum envelope::BatchError
zaun_community_protocol::envelope::BatchError · Enum
pub enum BatchError { … }A batch that breaks the rules of the protocol Indices count from 0 in body.events.
Variants
Section titled “Variants”Malformed
Section titled “Malformed”Not JSON, not an object, type is not events, or body.events is missing.
Element(usize)
Section titled “Element(usize)”An element is not a valid the protocol event envelope.
Nested(usize)
Section titled “Nested(usize)”An element is itself a batch or a response; batches do not nest.
Mismatch(usize)
Section titled “Mismatch(usize)”An element’s community_id or v differs from the batch’s.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug, Display, Eq, Error, PartialEq, StructuralPartialEq