Enum protobuf::error::ProtobufError
[−]
[src]
pub enum ProtobufError {
IoError(Error),
WireError(WireError),
Utf8(Utf8Error),
MessageNotInitialized {
message: &'static str,
},
}Variants
IoError(Error)WireError(WireError)Utf8(Utf8Error)MessageNotInitializedFields of MessageNotInitialized
message: &'static str |
Methods
impl ProtobufError[src]
pub fn message_not_initialized(message: &'static str) -> ProtobufError[src]
Trait Implementations
impl Debug for ProtobufError[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Display for ProtobufError[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Error for ProtobufError[src]
fn description(&self) -> &str[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>[src]
The lower-level cause of this error, if any. Read more
impl From<Error> for ProtobufError[src]
impl From<Utf8Error> for ProtobufError[src]
impl From<ProtobufError> for Error[src]
fn from(err: ProtobufError) -> Self[src]
Performs the conversion.