pub enum StrategyReplayError<FeedError, StrategyError> {
Feed(FeedError),
Cancelled,
Input(StrategyReplayInputError),
Series(SeriesError),
SeriesView(SeriesViewError),
Analysis(AnalysisError),
Strategy(StrategyError),
Runtime(StrategyRuntimeError),
WarmupSignals {
timestamp: NaiveDateTime,
},
InvalidGeneratedSignal {
signal_index: usize,
reason: String,
},
TickExecutionRequired {
symbol: String,
timestamp: NaiveDateTime,
},
}Expand description
Errors returned while running a historical strategy through FutureQuote.
Variants§
Feed(FeedError)
Cancelled
Input(StrategyReplayInputError)
Series(SeriesError)
SeriesView(SeriesViewError)
Analysis(AnalysisError)
Strategy(StrategyError)
Runtime(StrategyRuntimeError)
WarmupSignals
Fields
§
timestamp: NaiveDateTimeInvalidGeneratedSignal
TickExecutionRequired
Trait Implementations§
Source§impl<FeedError: Debug, StrategyError: Debug> Debug for StrategyReplayError<FeedError, StrategyError>
impl<FeedError: Debug, StrategyError: Debug> Debug for StrategyReplayError<FeedError, StrategyError>
Source§impl<FeedError, StrategyError> Display for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> Display for StrategyReplayError<FeedError, StrategyError>
Source§impl<FeedError, StrategyError> Error for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> Error for StrategyReplayError<FeedError, StrategyError>
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<AnalysisError> for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> From<AnalysisError> for StrategyReplayError<FeedError, StrategyError>
Source§fn from(source: AnalysisError) -> Self
fn from(source: AnalysisError) -> Self
Converts to this type from the input type.
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<FeedError, StrategyError> From<SeriesViewError> for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> From<SeriesViewError> for StrategyReplayError<FeedError, StrategyError>
Source§fn from(source: SeriesViewError) -> Self
fn from(source: SeriesViewError) -> Self
Converts to this type from the input type.
Source§impl<FeedError, StrategyError> From<StrategyReplayInputError> for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> From<StrategyReplayInputError> for StrategyReplayError<FeedError, StrategyError>
Source§fn from(source: StrategyReplayInputError) -> Self
fn from(source: StrategyReplayInputError) -> Self
Converts to this type from the input type.
Source§impl<FeedError, StrategyError> From<StrategyRuntimeError> for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> From<StrategyRuntimeError> for StrategyReplayError<FeedError, StrategyError>
Source§fn from(source: StrategyRuntimeError) -> Self
fn from(source: StrategyRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<FeedError, StrategyError> Freeze for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> RefUnwindSafe for StrategyReplayError<FeedError, StrategyError>where
FeedError: RefUnwindSafe,
StrategyError: RefUnwindSafe,
impl<FeedError, StrategyError> Send for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> Sync for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> Unpin for StrategyReplayError<FeedError, StrategyError>
impl<FeedError, StrategyError> UnsafeUnpin for StrategyReplayError<FeedError, StrategyError>where
FeedError: UnsafeUnpin,
StrategyError: UnsafeUnpin,
impl<FeedError, StrategyError> UnwindSafe for StrategyReplayError<FeedError, StrategyError>where
FeedError: UnwindSafe,
StrategyError: UnwindSafe,
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