pub enum MessageError {
SeqNumberTooLow {
expected: u64,
actual: u64,
possible_duplicate: bool,
},
IncorrectBeginString(String),
IncorrectCompId {
comp_id: String,
comp_id_type: CompIdType,
msg_seq_num: u64,
},
SendingTimeAccuracyIssue {
msg_seq_num: u64,
},
SendingTimeMissing {
msg_seq_num: u64,
},
OriginalSendingTimeMissing {
msg_seq_num: u64,
},
OriginalSendingTimeAfterSendingTime {
msg_seq_num: u64,
original_sending_time: Timestamp,
sending_time: Timestamp,
},
}Variants§
SeqNumberTooLow
The message’s sequence number is lower than we expected.
IncorrectBeginString(String)
The begin string is different from our expectations.
IncorrectCompId
The comp ID is different from our expectations.
SendingTimeAccuracyIssue
The sending time is not within the latency threshold.
SendingTimeMissing
The sending time field is missing from the message.
OriginalSendingTimeMissing
Original sending time is not provided despite PossDupFlag being set.
OriginalSendingTimeAfterSendingTime
The original sending time is after the sending time of the message.
Trait Implementations§
Source§impl Debug for MessageError
impl Debug for MessageError
Source§impl Display for MessageError
impl Display for MessageError
Source§impl Error for MessageError
impl Error for MessageError
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<MessageError> for VerificationIssue
impl From<MessageError> for VerificationIssue
Source§fn from(source: MessageError) -> Self
fn from(source: MessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MessageError
impl RefUnwindSafe for MessageError
impl Send for MessageError
impl Sync for MessageError
impl Unpin for MessageError
impl UnsafeUnpin for MessageError
impl UnwindSafe for MessageError
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