Enum solana_sdk::transport::TransportError
source · pub enum TransportError {
IoError(Error),
TransactionError(TransactionError),
Custom(String),
}
Variants§
Implementations§
source§impl TransportError
impl TransportError
pub fn unwrap(&self) -> TransactionError
Trait Implementations§
source§impl Debug for TransportError
impl Debug for TransportError
source§impl Display for TransportError
impl Display for TransportError
source§impl Error for TransportError
impl Error for TransportError
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<TransactionError> for TransportError
impl From<TransactionError> for TransportError
source§fn from(source: TransactionError) -> Self
fn from(source: TransactionError) -> Self
Converts to this type from the input type.