pub enum ConsensusDataError {
    DataNotConsumed,
    NonMinimalVarInt,
    InvalidXonlyPubkey(Array<u8, 32>),
    LongTapMerklePath,
    InvalidTapMerklePath,
    InvalidLeafVer(InvalidLeafVer),
    WrongAnnexFirstByte(u8),
    Confined(Error),
    UnsupportedSegwitFlag(u8),
}Variants§
DataNotConsumed
consensus data are followed by some excessive bytes.
NonMinimalVarInt
not a minimally-encoded variable integer.
InvalidXonlyPubkey(Array<u8, 32>)
invalid BIP340 (x-only) pubkey data.
LongTapMerklePath
taproot Merkle path length exceeds BIP-341 consensus limit of 128 elements.
InvalidTapMerklePath
Merkle path in the PSBT_IN_TAP_TREE is not encoded correctly.
InvalidLeafVer(InvalidLeafVer)
WrongAnnexFirstByte(u8)
invalid first annex byte {0:#02x}, which must be 0x50.
Confined(Error)
UnsupportedSegwitFlag(u8)
unsupported Segwit flag {0}.
Trait Implementations§
Source§impl Clone for ConsensusDataError
 
impl Clone for ConsensusDataError
Source§fn clone(&self) -> ConsensusDataError
 
fn clone(&self) -> ConsensusDataError
Returns a copy 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 ConsensusDataError
 
impl Debug for ConsensusDataError
Source§impl Display for ConsensusDataError
 
impl Display for ConsensusDataError
Source§impl Error for ConsensusDataError
 
impl Error for ConsensusDataError
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 From<ConsensusDataError> for ConsensusDecodeError
 
impl From<ConsensusDataError> for ConsensusDecodeError
Source§fn from(v: ConsensusDataError) -> ConsensusDecodeError
 
fn from(v: ConsensusDataError) -> ConsensusDecodeError
Converts to this type from the input type.
Source§impl From<ConsensusDataError> for PsbtError
 
impl From<ConsensusDataError> for PsbtError
Source§fn from(v: ConsensusDataError) -> PsbtError
 
fn from(v: ConsensusDataError) -> PsbtError
Converts to this type from the input type.
Source§impl From<Error> for ConsensusDataError
 
impl From<Error> for ConsensusDataError
Source§fn from(v: Error) -> ConsensusDataError
 
fn from(v: Error) -> ConsensusDataError
Converts to this type from the input type.
Source§impl From<InvalidLeafVer> for ConsensusDataError
 
impl From<InvalidLeafVer> for ConsensusDataError
Source§fn from(v: InvalidLeafVer) -> ConsensusDataError
 
fn from(v: InvalidLeafVer) -> ConsensusDataError
Converts to this type from the input type.
Source§impl PartialEq for ConsensusDataError
 
impl PartialEq for ConsensusDataError
impl Copy for ConsensusDataError
impl Eq for ConsensusDataError
impl StructuralPartialEq for ConsensusDataError
Auto Trait Implementations§
impl Freeze for ConsensusDataError
impl RefUnwindSafe for ConsensusDataError
impl Send for ConsensusDataError
impl Sync for ConsensusDataError
impl Unpin for ConsensusDataError
impl UnwindSafe for ConsensusDataError
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.