#[non_exhaustive]pub enum DecodeError {
Show 15 variants
Short,
Long,
InvalidString(FromUtf8Error),
InvalidMessage(u64),
InvalidSubscribeLocation,
InvalidValue,
TooMany,
BoundsExceeded,
ExpectedEnd,
ExpectedData,
Duplicate,
Missing,
Unsupported,
TrailingBytes,
Version,
}Expand description
A decode error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Short
The buffer ran out mid-value. Retry once more bytes arrive.
Long
The value claims more bytes than the enclosing message allows.
InvalidString(FromUtf8Error)
A string field was not valid UTF-8.
InvalidMessage(u64)
The message type ID is unknown for the negotiated version.
InvalidSubscribeLocation
A SUBSCRIBE start/end location is malformed or out of order.
InvalidValue
A field held a value outside its permitted range.
TooMany
A repeated field exceeded the count this implementation accepts.
BoundsExceeded
An integer was too large for the QUIC varint range.
ExpectedEnd
More data followed where the message was required to end.
ExpectedData
The stream ended where a payload was required.
Duplicate
A parameter or field appeared more than once.
Missing
A required parameter or field was absent.
Unsupported
The value is well-formed but this implementation does not handle it.
TrailingBytes
Bytes remained after the value was fully decoded.
Version
The field does not exist in the negotiated protocol version.
Trait Implementations§
Source§impl Clone for DecodeError
impl Clone for DecodeError
Source§fn clone(&self) -> DecodeError
fn clone(&self) -> DecodeError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DecodeError
impl Debug for DecodeError
Source§impl Display for DecodeError
impl Display for DecodeError
Source§impl Error for DecodeError
impl Error for DecodeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()