pub enum ProtocolDecodingError {
Io(Error),
Invalid {
message: String,
source: Option<Box<dyn Error + Send + Sync + 'static>>,
},
}Expand description
Error occuring during protocol decoding.
Variants§
Implementations§
Source§impl ProtocolDecodingError
impl ProtocolDecodingError
Sourcepub fn invalid(message: impl Display) -> Self
pub fn invalid(message: impl Display) -> Self
Create a new ProtocolDecodingError::Invalid with the given message.
Sourcepub fn invalid_err<E>(source: E, message: impl Display) -> Self
pub fn invalid_err<E>(source: E, message: impl Display) -> Self
Create a new ProtocolDecodingError::Invalid with the given message and source error.
Trait Implementations§
Source§impl Debug for ProtocolDecodingError
impl Debug for ProtocolDecodingError
Source§impl Display for ProtocolDecodingError
impl Display for ProtocolDecodingError
Source§impl Error for ProtocolDecodingError
impl Error for ProtocolDecodingError
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<Error> for ProtocolDecodingError
impl From<Error> for ProtocolDecodingError
Source§impl From<Error> for ProtocolDecodingError
impl From<Error> for ProtocolDecodingError
Auto Trait Implementations§
impl Freeze for ProtocolDecodingError
impl !RefUnwindSafe for ProtocolDecodingError
impl Send for ProtocolDecodingError
impl Sync for ProtocolDecodingError
impl Unpin for ProtocolDecodingError
impl !UnwindSafe for ProtocolDecodingError
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