pub enum CheckpointError {
SymbolMismatch {
checkpoint: String,
expected: String,
},
ThresholdMismatch {
checkpoint: u32,
expected: u32,
},
PriceHashMismatch {
checkpoint: u64,
computed: u64,
},
MissingThresholds,
SerializationError {
message: String,
},
}Expand description
Checkpoint-related errors
Variants§
SymbolMismatch
Symbol mismatch between checkpoint and processor
ThresholdMismatch
Threshold mismatch between checkpoint and processor
PriceHashMismatch
Price hash mismatch indicates wrong position in data stream
MissingThresholds
Checkpoint has incomplete bar but no thresholds
SerializationError
Checkpoint serialization/deserialization error
Trait Implementations§
Source§impl Clone for CheckpointError
impl Clone for CheckpointError
Source§fn clone(&self) -> CheckpointError
fn clone(&self) -> CheckpointError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CheckpointError
impl Debug for CheckpointError
Source§impl Display for CheckpointError
impl Display for CheckpointError
Source§impl Error for CheckpointError
impl Error for CheckpointError
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 PartialEq for CheckpointError
impl PartialEq for CheckpointError
impl StructuralPartialEq for CheckpointError
Auto Trait Implementations§
impl Freeze for CheckpointError
impl RefUnwindSafe for CheckpointError
impl Send for CheckpointError
impl Sync for CheckpointError
impl Unpin for CheckpointError
impl UnwindSafe for CheckpointError
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