Struct rift::ProtocolError [] [src]

pub struct ProtocolError {
    pub kind: ProtocolErrorKind,
    pub message: String,
}

Encodes information about errors encountered within rift library code.

Fields

Specific Thrift protocol error kind.

If a specific ProtocolErrorKind does not apply use ProtocolErrorKind::Unknown.

Human-readable error message.

Methods

impl ProtocolError
[src]

Convenience constructor to create a new ProtocolError instance.

Trait Implementations

impl Debug for ProtocolError
[src]

Formats the value using the given formatter.

impl Display for ProtocolError
[src]

Formats the value using the given formatter. Read more