pub enum ProstCodecError {
Encode(EncodeError),
Decode(DecodeError),
}Expand description
A Protobuf serialization failure, preserving the backend error as its source.
Variants§
Encode(EncodeError)
The outbound message could not be encoded into the destination.
Decode(DecodeError)
The inbound payload is not a valid message of the requested type.
Trait Implementations§
Source§impl Debug for ProstCodecError
impl Debug for ProstCodecError
Source§impl Display for ProstCodecError
impl Display for ProstCodecError
Source§impl Error for ProstCodecError
impl Error for ProstCodecError
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()
Source§impl From<DecodeError> for ProstCodecError
impl From<DecodeError> for ProstCodecError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<EncodeError> for ProstCodecError
impl From<EncodeError> for ProstCodecError
Source§fn from(source: EncodeError) -> Self
fn from(source: EncodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProstCodecError
impl RefUnwindSafe for ProstCodecError
impl Send for ProstCodecError
impl Sync for ProstCodecError
impl Unpin for ProstCodecError
impl UnsafeUnpin for ProstCodecError
impl UnwindSafe for ProstCodecError
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