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
Fields
message: &'static str
Message name
Not all required fields set
Trait Implementations
sourceimpl Debug for ProtobufError
impl Debug for ProtobufError
sourceimpl Display for ProtobufError
impl Display for ProtobufError
sourceimpl Error for ProtobufError
impl Error for ProtobufError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl From<ProtobufError> for Error
impl From<ProtobufError> for Error
sourcefn from(err: ProtobufError) -> Self
fn from(err: ProtobufError) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more