#[non_exhaustive]pub enum HeaderDecoderError {
Version(VersionDecoderError),
PrevBlockhash(BlockHashDecoderError),
MerkleRoot(TxMerkleNodeDecoderError),
Time(BlockTimeDecoderError),
Bits(CompactTargetDecoderError),
Nonce(UnexpectedEofError),
}Expand description
An error consensus decoding a Header.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Version(VersionDecoderError)
Error while decoding the version.
PrevBlockhash(BlockHashDecoderError)
Error while decoding the prev_blockhash.
MerkleRoot(TxMerkleNodeDecoderError)
Error while decoding the merkle_root.
Time(BlockTimeDecoderError)
Error while decoding the time.
Bits(CompactTargetDecoderError)
Error while decoding the bits.
Nonce(UnexpectedEofError)
Error while decoding the nonce.
Trait Implementations§
Source§impl Clone for HeaderDecoderError
impl Clone for HeaderDecoderError
Source§fn clone(&self) -> HeaderDecoderError
fn clone(&self) -> HeaderDecoderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeaderDecoderError
impl Debug for HeaderDecoderError
Source§impl Display for HeaderDecoderError
Available on crate feature alloc only.
impl Display for HeaderDecoderError
Available on crate feature
alloc only.Source§impl Error for HeaderDecoderError
Available on crate features std and alloc only.
impl Error for HeaderDecoderError
Available on crate features
std and alloc only.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 From<Infallible> for HeaderDecoderError
Available on crate feature alloc only.
impl From<Infallible> for HeaderDecoderError
Available on crate feature
alloc only.Source§fn from(never: Infallible) -> Self
fn from(never: Infallible) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HeaderDecoderError
impl PartialEq for HeaderDecoderError
impl Eq for HeaderDecoderError
impl StructuralPartialEq for HeaderDecoderError
Auto Trait Implementations§
impl Freeze for HeaderDecoderError
impl RefUnwindSafe for HeaderDecoderError
impl Send for HeaderDecoderError
impl Sync for HeaderDecoderError
impl Unpin for HeaderDecoderError
impl UnsafeUnpin for HeaderDecoderError
impl UnwindSafe for HeaderDecoderError
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