Enum protobuf::error::ProtobufError
source · pub enum ProtobufError {
IoError(Error),
WireError(WireError),
Utf8(Utf8Error),
MessageNotInitialized {
message: &'static str,
},
}
Variants§
Implementations§
source§impl ProtobufError
impl ProtobufError
pub fn message_not_initialized(message: &'static str) -> ProtobufError
Trait Implementations§
source§impl Debug for ProtobufError
impl Debug for ProtobufError
source§impl Display for ProtobufError
impl Display for ProtobufError
source§impl Error for ProtobufError
impl Error for ProtobufError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl From<Error> for ProtobufError
impl From<Error> for ProtobufError
source§impl From<ProtobufError> for Error
impl From<ProtobufError> for Error
source§fn from(err: ProtobufError) -> Self
fn from(err: ProtobufError) -> Self
Converts to this type from the input type.