Enum protobuf::error::ProtobufError
source · pub enum ProtobufError {
IoError(Error),
WireError(WireError),
Utf8(Utf8Error),
MessageNotInitialized {
message: &'static str,
},
}
Expand description
Generic protobuf error
Variants§
IoError(Error)
I/O error when reading or writing
WireError(WireError)
Malformed input
Utf8(Utf8Error)
Protocol contains a string which is not valid UTF-8 string
MessageNotInitialized
Not all required fields set
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.
Auto Trait Implementations§
impl !RefUnwindSafe for ProtobufError
impl Send for ProtobufError
impl Sync for ProtobufError
impl Unpin for ProtobufError
impl !UnwindSafe for ProtobufError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more