Struct rift::ProtocolError
[−]
[src]
pub struct ProtocolError { pub kind: ProtocolErrorKind, pub message: String, }
Encodes information about errors encountered within rift library code.
Fields
kind: ProtocolErrorKind
Specific Thrift protocol error kind.
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
Convenience constructor to create a new ProtocolError
instance.