Function thrift::new_protocol_error [] [src]

pub fn new_protocol_error<S: Into<String>>(kind: ProtocolErrorKind,
                                           message: S)
                                           -> Error

Create a new Error instance of type Protocol that wraps a ProtocolError.