pub enum BlockError {
IncompleteBlock,
EncodeError,
InvalidBlockHash,
DifficultyMismatch,
BlockPowDifficultyIncorrect,
IncompleteTransaction,
InvalidMerkleTreeRoot,
AddressInclusionFilter(AddressInclusionFilterError),
IncorrectAddressInclusionFilter,
}Variants§
IncompleteBlock
EncodeError
InvalidBlockHash
DifficultyMismatch
BlockPowDifficultyIncorrect
IncompleteTransaction
InvalidMerkleTreeRoot
AddressInclusionFilter(AddressInclusionFilterError)
IncorrectAddressInclusionFilter
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for BlockError
impl<'__de, __Context> BorrowDecode<'__de, __Context> for BlockError
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for BlockError
impl Clone for BlockError
Source§fn clone(&self) -> BlockError
fn clone(&self) -> BlockError
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 BlockError
impl Debug for BlockError
Source§impl<__Context> Decode<__Context> for BlockError
impl<__Context> Decode<__Context> for BlockError
Source§impl<'de> Deserialize<'de> for BlockError
impl<'de> Deserialize<'de> for BlockError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for BlockError
impl Display for BlockError
Source§impl Encode for BlockError
impl Encode for BlockError
Source§impl Error for BlockError
impl Error for BlockError
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<AddressInclusionFilterError> for BlockError
impl From<AddressInclusionFilterError> for BlockError
Source§fn from(source: AddressInclusionFilterError) -> Self
fn from(source: AddressInclusionFilterError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for BlockStoreError
impl From<BlockError> for BlockStoreError
Source§fn from(source: BlockError) -> Self
fn from(source: BlockError) -> Self
Converts to this type from the input type.
Source§impl From<BlockError> for BlockchainError
impl From<BlockError> for BlockchainError
Source§fn from(source: BlockError) -> Self
fn from(source: BlockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BlockError
impl RefUnwindSafe for BlockError
impl Send for BlockError
impl Sync for BlockError
impl Unpin for BlockError
impl UnwindSafe for BlockError
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