pub enum GetBlockchainInfoError {
Numeric(NumericError),
Chain(ParseNetworkError),
BestBlockHash(HexToArrayError),
ChainWork(UnprefixedHexError),
}
Expand description
Error when converting a GetBlockchainInfo
type into the model type.
Variants§
Numeric(NumericError)
Conversion of numeric type to expected type failed.
Chain(ParseNetworkError)
Conversion of the chain
field failed.
BestBlockHash(HexToArrayError)
Conversion of the best_block_hash
field failed.
ChainWork(UnprefixedHexError)
Conversion of the chain_work
field failed.
Trait Implementations§
Source§impl Debug for GetBlockchainInfoError
impl Debug for GetBlockchainInfoError
Source§impl Display for GetBlockchainInfoError
impl Display for GetBlockchainInfoError
Source§impl Error for GetBlockchainInfoError
impl Error for GetBlockchainInfoError
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<NumericError> for GetBlockchainInfoError
impl From<NumericError> for GetBlockchainInfoError
Source§fn from(e: NumericError) -> Self
fn from(e: NumericError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetBlockchainInfoError
impl RefUnwindSafe for GetBlockchainInfoError
impl Send for GetBlockchainInfoError
impl Sync for GetBlockchainInfoError
impl Unpin for GetBlockchainInfoError
impl UnwindSafe for GetBlockchainInfoError
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