Struct thrift::TransportError
source · pub struct TransportError {
pub kind: TransportErrorKind,
pub message: String,
}
Expand description
Information about I/O errors.
Fields§
§kind: TransportErrorKind
I/O error variant.
If a specific TransportErrorKind
does not apply use
TransportErrorKind::Unknown
.
message: String
Human-readable error message.
Implementations§
source§impl TransportError
impl TransportError
sourcepub fn new<S: Into<String>>(
kind: TransportErrorKind,
message: S
) -> TransportError
pub fn new<S: Into<String>>(
kind: TransportErrorKind,
message: S
) -> TransportError
Create a new TransportError
.
Trait Implementations§
source§impl Debug for TransportError
impl Debug for TransportError
source§impl Display for TransportError
impl Display for TransportError
source§impl From<TransportError> for Error
impl From<TransportError> for Error
source§fn from(e: TransportError) -> Self
fn from(e: TransportError) -> Self
Converts to this type from the input type.