pub enum CosmosGrpcError {
Show 17 variants
NoToken,
BadResponse(String),
BadStruct(String),
SigningError {
error: PrivateKeyError,
},
ConnectionError {
error: Error,
},
RequestError {
error: Status,
},
DecodeError {
error: DecodeError,
},
BadInput(String),
ChainNotRunning,
NodeNotSynced,
InvalidPrefix,
NoBlockProduced {
time: Duration,
},
TransactionFailed {
tx: TxResponse,
time: Duration,
sdk_error: Option<SdkErrorCode>,
},
InsufficientFees {
fee_info: FeeInfo,
},
ParseError {
error: ParseError,
},
GasRequiredExceedsBlockMaximum {
max: u64,
required: u64,
},
TimeoutError,
}Variants§
NoToken
BadResponse(String)
BadStruct(String)
SigningError
Fields
§
error: PrivateKeyErrorConnectionError
RequestError
DecodeError
Fields
§
error: DecodeErrorBadInput(String)
ChainNotRunning
NodeNotSynced
InvalidPrefix
NoBlockProduced
TransactionFailed
InsufficientFees
ParseError
Fields
§
error: ParseErrorGasRequiredExceedsBlockMaximum
TimeoutError
Trait Implementations§
Source§impl Debug for CosmosGrpcError
impl Debug for CosmosGrpcError
Source§impl Display for CosmosGrpcError
impl Display for CosmosGrpcError
Source§impl Error for CosmosGrpcError
impl Error for CosmosGrpcError
1.30.0 · 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<ArrayStringError> for CosmosGrpcError
impl From<ArrayStringError> for CosmosGrpcError
Source§fn from(_error: ArrayStringError) -> Self
fn from(_error: ArrayStringError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeError> for CosmosGrpcError
impl From<DecodeError> for CosmosGrpcError
Source§fn from(error: DecodeError) -> Self
fn from(error: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Elapsed> for CosmosGrpcError
impl From<Elapsed> for CosmosGrpcError
Source§impl From<Error> for CosmosGrpcError
impl From<Error> for CosmosGrpcError
Source§fn from(error: TonicError) -> Self
fn from(error: TonicError) -> Self
Converts to this type from the input type.
Source§impl From<PrivateKeyError> for CosmosGrpcError
impl From<PrivateKeyError> for CosmosGrpcError
Source§fn from(error: PrivateKeyError) -> Self
fn from(error: PrivateKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for CosmosGrpcError
impl !RefUnwindSafe for CosmosGrpcError
impl Send for CosmosGrpcError
impl Sync for CosmosGrpcError
impl Unpin for CosmosGrpcError
impl !UnwindSafe for CosmosGrpcError
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request