pub enum GetBlockStatsError {
Numeric(NumericError),
BlockHash(HexToArrayError),
}Expand description
Error when converting a GetBlockStats type into the model type.
Variants§
Numeric(NumericError)
Conversion of numeric type to expected type failed.
BlockHash(HexToArrayError)
Conversion of the block_hash field failed.
Trait Implementations§
Source§impl Debug for GetBlockStatsError
impl Debug for GetBlockStatsError
Source§impl Display for GetBlockStatsError
impl Display for GetBlockStatsError
Source§impl Error for GetBlockStatsError
Available on crate feature std only.
impl Error for GetBlockStatsError
Available on crate feature
std 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<NumericError> for GetBlockStatsError
impl From<NumericError> for GetBlockStatsError
Source§fn from(e: NumericError) -> GetBlockStatsError
fn from(e: NumericError) -> GetBlockStatsError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GetBlockStatsError
impl RefUnwindSafe for GetBlockStatsError
impl Send for GetBlockStatsError
impl Sync for GetBlockStatsError
impl Unpin for GetBlockStatsError
impl UnsafeUnpin for GetBlockStatsError
impl UnwindSafe for GetBlockStatsError
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