Enum tendermint_rpc::error::Code [−][src]
pub enum Code {
HttpError,
WebSocketError,
ClientInternalError,
ParseError,
InvalidRequest,
MethodNotFound,
InvalidParams,
InternalError,
ServerError,
Other(i32),
}Expand description
Tendermint RPC error codes.
See func RPC*Error() definitions in:
https://github.com/tendermint/tendermint/blob/master/rpc/jsonrpc/types/types.go
Variants
Low-level HTTP error
Low-level WebSocket error
An internal error occurred within the client.
This is an error unique to this client, and is not available in the Go client.
Parse error i.e. invalid JSON (-32700)
Invalid request (-32600)
Method not found error (-32601)
Invalid parameters (-32602)
Internal RPC server error (-32603)
Server error (-32000)
Other(i32)Other error types
Implementations
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Codeimpl UnwindSafe for CodeBlanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V