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
Available on crate feature std
only.
impl Error for ParseBlockNumberError
Available on crate feature
std
only.Error variants when parsing a BlockNumberOrTag
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<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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more