pub enum DecodeError {
UnknownType(String),
Malformed(Error),
}Expand description
Why a text frame did not produce an Incoming message.
Variants§
UnknownType(String)
The type is not one this revision implements.
Incoming::parse reports this case as Ok(None) rather than as this variant, because the
protocol requires ignoring an unrecognised type instead of closing the connection. The
variant stays part of the public error type so a stricter dispatcher can still name the
case.
Malformed(Error)
The type is known, but the message does not deserialize.
Trait Implementations§
Source§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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for DecodeError
impl !UnwindSafe for DecodeError
impl Forget for DecodeError
impl Freeze for DecodeError
impl Move for DecodeError
impl Send for DecodeError
impl Sync for DecodeError
impl Unpin for DecodeError
impl UnsafeUnpin for DecodeError
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