pub enum PortfolioReplayError<FeedError> {
NoInstances,
TooManyInstances(usize),
DuplicateInstanceIdentity {
instance_id: String,
},
Input(StrategyReplayInputError),
Supervisor(String),
Instance {
instance_id: String,
source: StrategyReplayError<Infallible, ConfiguredStrategyAdapterError>,
},
MixedPrimaryInput {
timestamp: NaiveDateTime,
},
Feed(FeedError),
Cancelled,
}Expand description
Failures of a portfolio replay.
Variants§
NoInstances
TooManyInstances(usize)
DuplicateInstanceIdentity
Input(StrategyReplayInputError)
Supervisor(String)
Instance
MixedPrimaryInput
Fields
§
timestamp: NaiveDateTimeFeed(FeedError)
Cancelled
Trait Implementations§
Source§impl<FeedError: Debug> Debug for PortfolioReplayError<FeedError>
impl<FeedError: Debug> Debug for PortfolioReplayError<FeedError>
Source§impl<FeedError> Display for PortfolioReplayError<FeedError>where
FeedError: Display,
impl<FeedError> Display for PortfolioReplayError<FeedError>where
FeedError: Display,
Source§impl<FeedError> Error for PortfolioReplayError<FeedError>
impl<FeedError> Error for PortfolioReplayError<FeedError>
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> From<RiskConfigError> for PortfolioReplayError<FeedError>
impl<FeedError> From<RiskConfigError> for PortfolioReplayError<FeedError>
Source§fn from(error: RiskConfigError) -> Self
fn from(error: RiskConfigError) -> Self
Converts to this type from the input type.
Source§impl<FeedError> From<StrategyReplayInputError> for PortfolioReplayError<FeedError>
impl<FeedError> From<StrategyReplayInputError> for PortfolioReplayError<FeedError>
Source§fn from(source: StrategyReplayInputError) -> Self
fn from(source: StrategyReplayInputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<FeedError> Freeze for PortfolioReplayError<FeedError>where
FeedError: Freeze,
impl<FeedError> RefUnwindSafe for PortfolioReplayError<FeedError>where
FeedError: RefUnwindSafe,
impl<FeedError> Send for PortfolioReplayError<FeedError>where
FeedError: Send,
impl<FeedError> Sync for PortfolioReplayError<FeedError>where
FeedError: Sync,
impl<FeedError> Unpin for PortfolioReplayError<FeedError>where
FeedError: Unpin,
impl<FeedError> UnsafeUnpin for PortfolioReplayError<FeedError>where
FeedError: UnsafeUnpin,
impl<FeedError> UnwindSafe for PortfolioReplayError<FeedError>where
FeedError: 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