pub fn new_protocol_error<S: Into<String>>(
kind: ProtocolErrorKind,
message: S,
) -> Error
Expand description
Create a new Error
instance of type Protocol
that wraps a
ProtocolError
.
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
.