Struct rift::TransportError
[−]
[src]
pub struct TransportError { pub kind: TransportErrorKind, pub message: String, }
Encodes information about I/O errors encountered within the rift library.
Fields
kind: TransportErrorKind
Specific I/O error kind.
If a specific TransportErrorKind
does not apply use
TransportErrorKind::Unknown
.
message: String
Human-readable error message.
Methods
impl TransportError
[src]
fn new<S: Into<String>>(kind: TransportErrorKind, message: S) -> TransportError
Convenience constructor to create a new TransportError
instance.