Struct thrift::ProtocolError
source · pub struct ProtocolError {
pub kind: ProtocolErrorKind,
pub message: String,
}
Expand description
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.
Implementations§
source§impl ProtocolError
impl ProtocolError
sourcepub fn new<S: Into<String>>(kind: ProtocolErrorKind, message: S) -> ProtocolError
pub fn new<S: Into<String>>(kind: ProtocolErrorKind, message: S) -> ProtocolError
Create a new ProtocolError
.
Trait Implementations§
source§impl Debug for ProtocolError
impl Debug for ProtocolError
source§impl Display for ProtocolError
impl Display for ProtocolError
source§impl From<ProtocolError> for Error
impl From<ProtocolError> for Error
source§fn from(e: ProtocolError) -> Self
fn from(e: ProtocolError) -> Self
Converts to this type from the input type.