pub enum NeutronError {
Show 16 variants
Std(StdError),
Fmt(Error),
FromUTF8Error(FromUtf8Error),
Bech32(Error),
ProstProtobuf(DecodeError),
SerdeJSONWasm(String),
MaxAddrLength {
max: usize,
actual: usize,
},
InvalidReplyID(u64),
InvalidQueryType {
query_type: String,
},
DecimalRangeExceeded(DecimalRangeExceeded),
Decimal256RangeExceeded(Decimal256RangeExceeded),
OverflowError(OverflowError),
InvalidQueryResultFormat(String),
IntegrationTestsMock {},
TooManyTransactionFilters {
max: usize,
},
AccountDenomBalanceKeyDeconstructionError(String),
}
Variants§
Std(StdError)
Fmt(Error)
FromUTF8Error(FromUtf8Error)
Bech32(Error)
ProstProtobuf(DecodeError)
SerdeJSONWasm(String)
MaxAddrLength
InvalidReplyID(u64)
InvalidQueryType
DecimalRangeExceeded(DecimalRangeExceeded)
Decimal256RangeExceeded(Decimal256RangeExceeded)
OverflowError(OverflowError)
InvalidQueryResultFormat(String)
IntegrationTestsMock
TooManyTransactionFilters
AccountDenomBalanceKeyDeconstructionError(String)
Trait Implementations§
Source§impl Debug for NeutronError
impl Debug for NeutronError
Source§impl Display for NeutronError
impl Display for NeutronError
Source§impl Error for NeutronError
impl Error for NeutronError
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<Decimal256RangeExceeded> for NeutronError
impl From<Decimal256RangeExceeded> for NeutronError
Source§fn from(source: Decimal256RangeExceeded) -> Self
fn from(source: Decimal256RangeExceeded) -> Self
Converts to this type from the input type.
Source§impl From<DecimalRangeExceeded> for NeutronError
impl From<DecimalRangeExceeded> for NeutronError
Source§fn from(source: DecimalRangeExceeded) -> Self
fn from(source: DecimalRangeExceeded) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for NeutronError
impl From<DecodeError> for NeutronError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for NeutronError
impl From<Error> for NeutronError
Source§impl From<Error> for NeutronError
impl From<Error> for NeutronError
Source§impl From<Error> for NeutronError
impl From<Error> for NeutronError
Source§impl From<FromUtf8Error> for NeutronError
impl From<FromUtf8Error> for NeutronError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<OverflowError> for NeutronError
impl From<OverflowError> for NeutronError
Source§fn from(source: OverflowError) -> Self
fn from(source: OverflowError) -> Self
Converts to this type from the input type.
Source§impl From<StdError> for NeutronError
impl From<StdError> for NeutronError
Source§impl PartialEq for NeutronError
impl PartialEq for NeutronError
impl StructuralPartialEq for NeutronError
Auto Trait Implementations§
impl Freeze for NeutronError
impl !RefUnwindSafe for NeutronError
impl Send for NeutronError
impl Sync for NeutronError
impl Unpin for NeutronError
impl !UnwindSafe for NeutronError
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