pub enum ProviderError {
Show 19 variants
NnsError(String),
NnsNotOwned(String),
SerdeJson(Error),
HexError(FromHexError),
HTTPError(Arc<Error>),
JsonRpcError(JsonRpcError),
CustomError(String),
UnsupportedRPC,
UnsupportedNodeClient,
SignerUnavailable,
IllegalState(String),
InvalidAddress,
CryptoError(CryptoError),
TypeError(TypeError),
InvalidPassword,
ParseError(String),
LockError,
ProtocolNotFound,
NetworkNotFound,
}
Expand description
An error thrown when making a call to the provider
Variants§
NnsError(String)
An error during NNS name resolution
NnsNotOwned(String)
Invalid reverse NNS name
SerdeJson(Error)
Error in underlying lib serde_json
HexError(FromHexError)
Error in underlying lib hex
HTTPError(Arc<Error>)
Error in underlying lib reqwest
JsonRpcError(JsonRpcError)
Reponse error
CustomError(String)
Custom error from unknown source
UnsupportedRPC
RPC method is not supported by this provider
UnsupportedNodeClient
Node is not supported by this provider
Signer is not available to this provider.
IllegalState(String)
InvalidAddress
CryptoError(CryptoError)
TypeError(TypeError)
InvalidPassword
ParseError(String)
Error parsing data
LockError
Error locking a mutex
ProtocolNotFound
Protocol not found
NetworkNotFound
Network not found
Trait Implementations§
Source§impl Clone for ProviderError
impl Clone for ProviderError
Source§impl Debug for ProviderError
impl Debug for ProviderError
Source§impl Display for ProviderError
impl Display for ProviderError
Source§impl Error for ProviderError
impl Error for ProviderError
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<Arc<Error>> for ProviderError
impl From<Arc<Error>> for ProviderError
Source§impl From<ClientError> for ProviderError
impl From<ClientError> for ProviderError
Source§fn from(src: ClientError) -> Self
fn from(src: ClientError) -> Self
Converts to this type from the input type.
Source§impl From<CryptoError> for ProviderError
impl From<CryptoError> for ProviderError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ProviderError
impl From<Error> for ProviderError
Source§impl From<FromHexError> for ProviderError
impl From<FromHexError> for ProviderError
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<JsonRpcError> for ProviderError
impl From<JsonRpcError> for ProviderError
Source§fn from(source: JsonRpcError) -> Self
fn from(source: JsonRpcError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for BuilderError
impl From<ProviderError> for BuilderError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for ContractError
impl From<ProviderError> for ContractError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for TransactionError
impl From<ProviderError> for TransactionError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<ProviderError> for WalletError
impl From<ProviderError> for WalletError
Source§fn from(source: ProviderError) -> Self
fn from(source: ProviderError) -> Self
Converts to this type from the input type.
Source§impl From<RetryClientError> for ProviderError
impl From<RetryClientError> for ProviderError
Source§fn from(src: RetryClientError) -> Self
fn from(src: RetryClientError) -> Self
Converts to this type from the input type.
Source§impl<Read, Write> From<RwClientError<Read, Write>> for ProviderErrorwhere
Read: JsonRpcProvider + 'static,
<Read as JsonRpcProvider>::Error: Sync + Send + 'static + Display,
Write: JsonRpcProvider + 'static,
<Write as JsonRpcProvider>::Error: Sync + Send + 'static + Display,
impl<Read, Write> From<RwClientError<Read, Write>> for ProviderErrorwhere
Read: JsonRpcProvider + 'static,
<Read as JsonRpcProvider>::Error: Sync + Send + 'static + Display,
Write: JsonRpcProvider + 'static,
<Write as JsonRpcProvider>::Error: Sync + Send + 'static + Display,
Source§fn from(src: RwClientError<Read, Write>) -> Self
fn from(src: RwClientError<Read, Write>) -> Self
Converts to this type from the input type.
Source§impl From<TypeError> for ProviderError
impl From<TypeError> for ProviderError
Source§impl PartialEq for ProviderError
impl PartialEq for ProviderError
Auto Trait Implementations§
impl Freeze for ProviderError
impl !RefUnwindSafe for ProviderError
impl Send for ProviderError
impl Sync for ProviderError
impl Unpin for ProviderError
impl !UnwindSafe for ProviderError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.