pub enum DeserializeErrorKind {
Garbled(GarbledReason),
Logout(LogoutReason),
Reject {
msg_type: Option<FixString>,
seq_num: SeqNum,
tag: Option<TagNum>,
reason: SessionRejectReasonField,
},
}Expand description
A failed deserialization, classified by what the session must do about it.
The three variants are three different reactions, not three severities.
Variants§
Garbled(GarbledReason)
Not a FIX message. Log it and drop it silently; do not reply and do not touch sequence numbers.
Logout(LogoutReason)
Well-formed, but the session cannot continue. Send Logout<5> and
disconnect.
Reject
A field-level violation in an otherwise well-formed message. Send
Reject<3> and carry on.
Fields
§
reason: SessionRejectReasonFieldValue for SessionRejectReason(373).
Trait Implementations§
Source§impl Debug for DeserializeErrorKind
impl Debug for DeserializeErrorKind
Source§impl Display for DeserializeErrorKind
impl Display for DeserializeErrorKind
Source§impl Error for DeserializeErrorKind
impl Error for DeserializeErrorKind
1.30.0 · 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 DeserializeErrorKind
impl From<RawMessageError> for DeserializeErrorKind
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 DeserializeErrorKind
impl Freeze for DeserializeErrorKind
impl RefUnwindSafe for DeserializeErrorKind
impl Send for DeserializeErrorKind
impl Sync for DeserializeErrorKind
impl Unpin for DeserializeErrorKind
impl UnsafeUnpin for DeserializeErrorKind
impl UnwindSafe for DeserializeErrorKind
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