pub enum DeserializeError<E> {
ReaderError(Error),
DataError(E),
}
👎Deprecated: This was a failed attempt at finding a suitable abstraction. The async-codec crate might be what you need instead.
Expand description
An error that occured during deserialization.
Variants§
ReaderError(Error)
👎Deprecated: This was a failed attempt at finding a suitable abstraction. The async-codec crate might be what you need instead.
An error propagated from the underlying reader.
DataError(E)
👎Deprecated: This was a failed attempt at finding a suitable abstraction. The async-codec crate might be what you need instead.
An error describing why the read data could not be deserialized into a value.
Trait Implementations§
Source§impl<E: Debug> Debug for DeserializeError<E>
impl<E: Debug> Debug for DeserializeError<E>
Source§impl<E: Display> Display for DeserializeError<E>
impl<E: Display> Display for DeserializeError<E>
Source§impl<E: Error> Error for DeserializeError<E>
impl<E: Error> Error for DeserializeError<E>
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl<E> From<Error> for DeserializeError<E>
impl<E> From<Error> for DeserializeError<E>
Source§fn from(err: FutIoErr) -> DeserializeError<E>
fn from(err: FutIoErr) -> DeserializeError<E>
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for DeserializeError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for DeserializeError<E>
impl<E> Send for DeserializeError<E>where
E: Send,
impl<E> Sync for DeserializeError<E>where
E: Sync,
impl<E> Unpin for DeserializeError<E>where
E: Unpin,
impl<E> !UnwindSafe for DeserializeError<E>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more