pub enum ParsingMethodError {
Show 16 variants
BadU256Convert(Box<Error>),
HexError(Box<FromHexError>),
BTCHashError(Box<Error>),
ValueNotAnArray(Box<Value>),
WrongArgs(Box<Value>),
ValueNotAString(Box<Value>),
ValueNotAFloat(Box<Value>),
ValueNotAnUnsigned(Box<Number>),
ValueNotAnInt(Box<Number>),
UnexpectedValue(Box<Value>),
ImpossibleToParseResultField(Box<Response>),
ImpossibleToParseAsU64(Box<Number>),
UnexpectedArrayParams(Vec<Value>),
UnexpectedObjectParams(Map<String, Value>),
MultipleError(Vec<ParsingMethodError>),
Todo,
}
Variants§
BadU256Convert(Box<Error>)
HexError(Box<FromHexError>)
BTCHashError(Box<Error>)
ValueNotAnArray(Box<Value>)
WrongArgs(Box<Value>)
ValueNotAString(Box<Value>)
ValueNotAFloat(Box<Value>)
ValueNotAnUnsigned(Box<Number>)
ValueNotAnInt(Box<Number>)
UnexpectedValue(Box<Value>)
ImpossibleToParseResultField(Box<Response>)
ImpossibleToParseAsU64(Box<Number>)
UnexpectedArrayParams(Vec<Value>)
UnexpectedObjectParams(Map<String, Value>)
MultipleError(Vec<ParsingMethodError>)
Todo
Implementations§
Source§impl<'a> ParsingMethodError
impl<'a> ParsingMethodError
pub fn as_method_error(self, msg: Message) -> MethodError<'a>
Source§impl ParsingMethodError
impl ParsingMethodError
pub fn not_array_from_value(v: Value) -> Self
pub fn not_string_from_value(v: Value) -> Self
pub fn not_float_from_value(v: Value) -> Self
pub fn not_unsigned_from_value(v: Number) -> Self
pub fn not_int_from_value(v: Number) -> Self
pub fn wrong_args_from_value(v: Value) -> Self
pub fn unexpected_value_from_value(v: Value) -> Self
Trait Implementations§
Source§impl Clone for ParsingMethodError
impl Clone for ParsingMethodError
Source§fn clone(&self) -> ParsingMethodError
fn clone(&self) -> ParsingMethodError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParsingMethodError
impl Debug for ParsingMethodError
Source§impl<'a> From<Error<'a>> for ParsingMethodError
impl<'a> From<Error<'a>> for ParsingMethodError
Source§impl From<Error> for ParsingMethodError
impl From<Error> for ParsingMethodError
Source§fn from(btc_err: BTCHashError) -> Self
fn from(btc_err: BTCHashError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ParsingMethodError
impl From<Error> for ParsingMethodError
Source§impl From<FromHexError> for ParsingMethodError
impl From<FromHexError> for ParsingMethodError
Source§fn from(hex_err: FromHexError) -> Self
fn from(hex_err: FromHexError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParsingMethodError
impl RefUnwindSafe for ParsingMethodError
impl Send for ParsingMethodError
impl Sync for ParsingMethodError
impl Unpin for ParsingMethodError
impl UnwindSafe for ParsingMethodError
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