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