pub enum DecoderError {
SchemaParse {
schema_name: String,
source: Box<dyn Error + Send + Sync>,
},
SchemaInvalid {
schema_name: String,
detail: String,
},
MessageDecode {
schema_name: String,
source: Box<dyn Error + Send + Sync>,
},
}Expand description
Error returned by MessageDecoder implementations.
Variants§
SchemaParse
Schema data (e.g., a serialized FileDescriptorSet) could not be parsed.
SchemaInvalid
Schema data is structurally invalid (e.g., missing descriptor, broken map fields).
MessageDecode
Message payload bytes could not be decoded.
Trait Implementations§
Source§impl Debug for DecoderError
impl Debug for DecoderError
Source§impl Display for DecoderError
impl Display for DecoderError
Source§impl Error for DecoderError
impl Error for DecoderError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DecoderError
impl !RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl UnsafeUnpin for DecoderError
impl !UnwindSafe for DecoderError
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