#[non_exhaustive]pub enum FixSequenceStoreError {
Io(String),
Encode(FixEncodeError),
InvalidMagic,
UnsupportedVersion(u16),
Truncated,
InvalidVersion,
FieldTooLarge,
ChecksumMismatch {
expected: u64,
actual: u64,
},
}Expand description
Error returned by FIX sequence snapshot persistence.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io(String)
Filesystem operation failed.
Encode(FixEncodeError)
Snapshot value validation failed.
InvalidMagic
Snapshot file magic does not match the expected format.
UnsupportedVersion(u16)
Snapshot file version is not supported.
Truncated
Snapshot file ended before a complete field could be decoded.
InvalidVersion
Snapshot payload has an invalid known FIX begin string.
FieldTooLarge
Encoded field length exceeds the supported snapshot format.
ChecksumMismatch
Snapshot checksum does not match the encoded payload.
Trait Implementations§
Source§impl Clone for FixSequenceStoreError
impl Clone for FixSequenceStoreError
Source§impl Debug for FixSequenceStoreError
impl Debug for FixSequenceStoreError
Source§impl Display for FixSequenceStoreError
impl Display for FixSequenceStoreError
impl Eq for FixSequenceStoreError
Source§impl Error for FixSequenceStoreError
impl Error for FixSequenceStoreError
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<FixEncodeError> for FixSequenceStoreError
impl From<FixEncodeError> for FixSequenceStoreError
Source§fn from(value: FixEncodeError) -> Self
fn from(value: FixEncodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FixSequenceStoreError
impl PartialEq for FixSequenceStoreError
impl StructuralPartialEq for FixSequenceStoreError
Auto Trait Implementations§
impl Freeze for FixSequenceStoreError
impl RefUnwindSafe for FixSequenceStoreError
impl Send for FixSequenceStoreError
impl Sync for FixSequenceStoreError
impl Unpin for FixSequenceStoreError
impl UnsafeUnpin for FixSequenceStoreError
impl UnwindSafe for FixSequenceStoreError
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