pub enum ProtocolError {
Show 14 variants
NotProtocol,
UnknownPrefix,
MalformedFragment,
FragmentDiscarded(DiscardReason),
TooLarge,
MalformedEnvelope,
BadBatch,
WrongVersion(u16),
WrongCommunity,
MalformedEvent(String),
UncorrelatedError(ErrorBody),
NotReady,
BindingMismatch,
AutoSend(ClientError),
}Expand description
Input ignored safely (§5.2, §5.3, §1.1, §9.4).
Variants§
NotProtocol
Text without the zaun: prefix.
UnknownPrefix
An unknown frame prefix (zaun:2: …).
MalformedFragment
A malformed fragment header.
FragmentDiscarded(DiscardReason)
A fragment reassembly was discarded.
TooLarge
An envelope above max_frame.
MalformedEnvelope
Not a valid response, event or batch envelope.
BadBatch
A batch inside a batch, or a batch element for another community.
WrongVersion(u16)
An event whose v is not the negotiated version (dropped, §1.1).
WrongCommunity
An event for another community than the session’s.
MalformedEvent(String)
A known event type with a malformed body; its cursor still advances.
An error response with request_id: null (§5.3).
NotReady
An event before a verified welcome or after a failed one (dropped).
BindingMismatch
A binding response names another community than the one requested; not bound.
AutoSend(ClientError)
An automatic sync.resume or sync.ack could not be prepared.
Trait Implementations§
Source§impl Clone for ProtocolError
impl Clone for ProtocolError
Source§fn clone(&self) -> ProtocolError
fn clone(&self) -> ProtocolError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolError
impl Debug for ProtocolError
impl Eq for ProtocolError
Source§impl PartialEq for ProtocolError
impl PartialEq for ProtocolError
impl StructuralPartialEq for ProtocolError
Auto Trait Implementations§
impl Freeze for ProtocolError
impl RefUnwindSafe for ProtocolError
impl Send for ProtocolError
impl Sync for ProtocolError
impl Unpin for ProtocolError
impl UnsafeUnpin for ProtocolError
impl UnwindSafe for ProtocolError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more