Enum bitcoin::consensus::DecodeError
source · 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§
source§impl<E: Debug> Debug for DecodeError<E>
impl<E: Debug> Debug for DecodeError<E>
source§impl<E: Debug> Display for DecodeError<E>
impl<E: Debug> Display for DecodeError<E>
source§impl<E: Debug> Error for DecodeError<E>
impl<E: Debug> Error for DecodeError<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<E> From<Infallible> for DecodeError<E>
impl<E> From<Infallible> for DecodeError<E>
source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
source§impl<E> IntoDeError for DecodeError<E>where
E: IntoDeError,
impl<E> IntoDeError for DecodeError<E>where E: IntoDeError,
source§fn into_de_error<DE: Error>(self) -> DE
fn into_de_error<DE: Error>(self) -> DE
Performs the conversion.
Auto Trait Implementations§
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