Struct solana_rpc_client_api::client_error::Error
source · pub struct Error {
pub request: Option<RpcRequest>,
pub kind: ErrorKind,
}
Fields§
§request: Option<RpcRequest>
§kind: ErrorKind
Implementations§
source§impl Error
impl Error
pub fn new_with_request(kind: ErrorKind, request: RpcRequest) -> Self
pub fn into_with_request(self, request: RpcRequest) -> Self
pub fn request(&self) -> Option<&RpcRequest>
pub fn kind(&self) -> &ErrorKind
pub fn get_transaction_error(&self) -> Option<TransactionError>
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for TransportError
impl From<Error> for TransportError
source§impl From<SignerError> for Error
impl From<SignerError> for Error
source§fn from(err: SignerError) -> Self
fn from(err: SignerError) -> Self
Converts to this type from the input type.
source§impl From<TransactionError> for Error
impl From<TransactionError> for Error
source§fn from(err: TransactionError) -> Self
fn from(err: TransactionError) -> Self
Converts to this type from the input type.
source§impl From<TransportError> for Error
impl From<TransportError> for Error
source§fn from(err: TransportError) -> Self
fn from(err: TransportError) -> Self
Converts to this type from the input type.