pub enum DeError {
Msg(MsgError),
Io(ErrorKind),
Utf8(Utf8),
InvalidInput(usize),
}
Expand description
Deserialization error
Variants§
Msg(MsgError)
Abitrary error message.
Io(ErrorKind)
IO error
Utf8(Utf8)
String UTF conversion error.
InvalidInput(usize)
Invalid input parameter for FromBytesWithInput
.
Implementations§
Trait Implementations§
Source§impl Error for DeError
impl Error for DeError
1.30.0 · 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()
Source§impl<T, P> From<DeError> for RouterError<T, P>
impl<T, P> From<DeError> for RouterError<T, P>
Source§impl From<DeError> for SocketError
impl From<DeError> for SocketError
Source§impl From<FromUtf8Error> for DeError
impl From<FromUtf8Error> for DeError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeError
impl RefUnwindSafe for DeError
impl Send for DeError
impl Sync for DeError
impl Unpin for DeError
impl UnwindSafe for DeError
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