Struct thrift::ProtocolError
[−]
[src]
pub struct ProtocolError { pub kind: ProtocolErrorKind, pub message: String, }
Information about errors that occur in the runtime library.
Fields
kind: ProtocolErrorKind
Protocol error variant.
If a specific ProtocolErrorKind
does not apply use
ProtocolErrorKind::Unknown
.
message: String
Human-readable error message.
Methods
impl ProtocolError
[src]
fn new<S: Into<String>>(kind: ProtocolErrorKind, message: S) -> ProtocolError
Create a new ProtocolError
.