Enum DecodeError
pub enum DecodeError<E> {
TooManyBytes,
Consensus(Error),
Other(E),
}
Expand description
Error when consensus decoding from an [IterReader]
.
Variants§
TooManyBytes
Attempted to decode an object from an iterator that yielded too many bytes.
Consensus(Error)
Invalid consensus encoding.
Other(E)
Other decoding error.
Trait Implementations§
§impl<E> Debug for DecodeError<E>where
E: Debug,
impl<E> Debug for DecodeError<E>where
E: Debug,
§impl<E> Display for DecodeError<E>where
E: Debug,
impl<E> Display for DecodeError<E>where
E: Debug,
§impl<E> Error for DecodeError<E>where
E: Debug,
impl<E> Error for DecodeError<E>where
E: Debug,
§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()
§impl<E> From<Infallible> for DecodeError<E>
impl<E> From<Infallible> for DecodeError<E>
§fn from(never: Infallible) -> DecodeError<E>
fn from(never: Infallible) -> DecodeError<E>
Converts to this type from the input type.
§impl<E> IntoDeError for DecodeError<E>where
E: IntoDeError,
impl<E> IntoDeError for DecodeError<E>where
E: IntoDeError,
§fn into_de_error<DE>(self) -> DEwhere
DE: Error,
fn into_de_error<DE>(self) -> DEwhere
DE: Error,
Performs the conversion.
Auto Trait Implementations§
impl<E> Freeze for DecodeError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for DecodeError<E>
impl<E> Send for DecodeError<E>where
E: Send,
impl<E> Sync for DecodeError<E>where
E: Sync,
impl<E> Unpin for DecodeError<E>where
E: Unpin,
impl<E> !UnwindSafe for DecodeError<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