Enum alloy_eips::eip1898::ParseBlockNumberError
source · pub enum ParseBlockNumberError {
ParseIntErr(ParseIntError),
ParseErr(ParseError),
MissingPrefix(HexStringMissingPrefixError),
}
Expand description
Error thrown when parsing a BlockNumberOrTag from a string.
Variants§
ParseIntErr(ParseIntError)
Failed to parse hex value
ParseErr(ParseError)
Failed to parse hex value
MissingPrefix(HexStringMissingPrefixError)
Block numbers should be 0x-prefixed
Trait Implementations§
source§impl Debug for ParseBlockNumberError
impl Debug for ParseBlockNumberError
source§impl Display for ParseBlockNumberError
impl Display for ParseBlockNumberError
source§impl Error for ParseBlockNumberError
impl Error for ParseBlockNumberError
Error variants when parsing a BlockNumberOrTag
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<HexStringMissingPrefixError> for ParseBlockNumberError
impl From<HexStringMissingPrefixError> for ParseBlockNumberError
source§fn from(err: HexStringMissingPrefixError) -> Self
fn from(err: HexStringMissingPrefixError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for ParseBlockNumberError
impl From<ParseError> for ParseBlockNumberError
source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for ParseBlockNumberError
impl From<ParseIntError> for ParseBlockNumberError
source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseBlockNumberError
impl RefUnwindSafe for ParseBlockNumberError
impl Send for ParseBlockNumberError
impl Sync for ParseBlockNumberError
impl Unpin for ParseBlockNumberError
impl UnwindSafe for ParseBlockNumberError
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