pub enum SeriesError {
Show 17 variants
ZeroRetention {
series_id: SeriesId,
},
RetentionTooLarge {
series_id: SeriesId,
retained_bars: usize,
maximum: usize,
},
RetentionBelowWarmup {
series_id: SeriesId,
retained_bars: usize,
required_bars: usize,
},
DuplicateSeriesId {
series_id: SeriesId,
},
BatchTimestampMismatch {
batch_ts: NaiveDateTime,
event_ts: NaiveDateTime,
},
DuplicateOrderingMetadata {
timestamp: NaiveDateTime,
series_rank: u32,
row_sequence: u64,
},
TimestampRegression {
symbol: String,
previous: NaiveDateTime,
current: NaiveDateTime,
},
BoundaryOverflow {
series_id: SeriesId,
timestamp: NaiveDateTime,
},
MissingInterval {
series_id: SeriesId,
previous_close: NaiveDateTime,
next_open: NaiveDateTime,
},
TickCountOverflow {
series_id: SeriesId,
},
CompletedBarCountOverflow {
series_id: SeriesId,
},
MixedSeriesInput {
series_id: SeriesId,
},
StoredBarWithoutTimeframe {
symbol: String,
timestamp: NaiveDateTime,
},
StoredBarUnmatched {
symbol: String,
timeframe_seconds: u64,
timestamp: NaiveDateTime,
},
StoredBarMisaligned {
series_id: SeriesId,
timestamp: NaiveDateTime,
bucket_open: NaiveDateTime,
},
InvalidStoredBar {
series_id: SeriesId,
timestamp: NaiveDateTime,
reason: &'static str,
},
DuplicateStoredBar {
series_id: SeriesId,
timestamp: NaiveDateTime,
},
}Expand description
Errors returned while constructing or updating historical series.
Variants§
ZeroRetention
RetentionTooLarge
RetentionBelowWarmup
DuplicateSeriesId
BatchTimestampMismatch
DuplicateOrderingMetadata
TimestampRegression
BoundaryOverflow
MissingInterval
TickCountOverflow
CompletedBarCountOverflow
MixedSeriesInput
StoredBarWithoutTimeframe
StoredBarUnmatched
StoredBarMisaligned
InvalidStoredBar
DuplicateStoredBar
Trait Implementations§
Source§impl Clone for SeriesError
impl Clone for SeriesError
Source§impl Debug for SeriesError
impl Debug for SeriesError
Source§impl Display for SeriesError
impl Display for SeriesError
impl Eq for SeriesError
Source§impl Error for SeriesError
impl Error for SeriesError
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<FeedError, StrategyError> From<SeriesError> for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> From<SeriesError> for StrategyReplayError<FeedError, StrategyError>
Source§fn from(source: SeriesError) -> Self
fn from(source: SeriesError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SeriesError
impl PartialEq for SeriesError
impl StructuralPartialEq for SeriesError
Auto Trait Implementations§
impl Freeze for SeriesError
impl RefUnwindSafe for SeriesError
impl Send for SeriesError
impl Sync for SeriesError
impl Unpin for SeriesError
impl UnsafeUnpin for SeriesError
impl UnwindSafe for SeriesError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.