pub struct DeserializeError {
pub kind: DeserializeErrorKind,
pub header: Option<Box<HeaderBase<'static>>>,
}Expand description
Deserialization failure returned by SessionMessage::from_raw_message.
Aggregates the underlying DeserializeErrorKind with the header of the
failed message when it is recoverable. The session layer uses the header
to give header verdicts (sequence numbers first) precedence over the
body-level error.
Fields§
§kind: DeserializeErrorKindThe underlying deserialization failure.
header: Option<Box<HeaderBase<'static>>>Fully parsed header of the failed message. Some when header
parsing succeeded and the failure happened in the body or trailer;
None when the header itself failed to parse.
Trait Implementations§
Source§impl Debug for DeserializeError
impl Debug for DeserializeError
Source§impl Display for DeserializeError
impl Display for DeserializeError
Source§impl Error for DeserializeError
impl Error for DeserializeError
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<DeserializeErrorKind> for DeserializeError
impl From<DeserializeErrorKind> for DeserializeError
Source§fn from(kind: DeserializeErrorKind) -> Self
fn from(kind: DeserializeErrorKind) -> Self
Converts to this type from the input type.
Source§impl From<RawMessageError> for DeserializeError
impl From<RawMessageError> for DeserializeError
Source§fn from(error: RawMessageError) -> Self
fn from(error: RawMessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for DeserializeError
impl Freeze for DeserializeError
impl RefUnwindSafe for DeserializeError
impl Send for DeserializeError
impl Sync for DeserializeError
impl Unpin for DeserializeError
impl UnsafeUnpin for DeserializeError
impl UnwindSafe for DeserializeError
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