pub enum ConfiguredStrategyAdapterError {
DuplicateSourceUpdate {
source_id: SourceId,
timestamp: NaiveDateTime,
},
MissingTickCount {
source_id: SourceId,
},
TickCountNotExactlyRepresentable {
tick_count: u64,
},
NamedInput {
name: String,
source: NamedInputProjectionError,
},
NamedInputValueType {
name: String,
expected: ValueType,
},
TradeSlot {
slot: String,
reason: String,
},
IncompatibleCommandEffect {
command_id: String,
},
Evaluation(EvaluationError),
Decision(StrategyDomainError),
Journal(StrategyJournalError),
IntegerOutputPrecision,
}Expand description
Runtime historical projection or configured evaluation failure.
Variants§
DuplicateSourceUpdate
MissingTickCount
TickCountNotExactlyRepresentable
NamedInput
NamedInputValueType
TradeSlot
IncompatibleCommandEffect
Evaluation(EvaluationError)
Decision(StrategyDomainError)
Journal(StrategyJournalError)
IntegerOutputPrecision
Trait Implementations§
Source§impl Error for ConfiguredStrategyAdapterError
impl Error for ConfiguredStrategyAdapterError
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<EvaluationError> for ConfiguredStrategyAdapterError
impl From<EvaluationError> for ConfiguredStrategyAdapterError
Source§fn from(source: EvaluationError) -> Self
fn from(source: EvaluationError) -> Self
Converts to this type from the input type.
Source§impl From<StrategyDomainError> for ConfiguredStrategyAdapterError
impl From<StrategyDomainError> for ConfiguredStrategyAdapterError
Source§fn from(source: StrategyDomainError) -> Self
fn from(source: StrategyDomainError) -> Self
Converts to this type from the input type.
Source§impl From<StrategyJournalError> for ConfiguredStrategyAdapterError
impl From<StrategyJournalError> for ConfiguredStrategyAdapterError
Source§fn from(source: StrategyJournalError) -> Self
fn from(source: StrategyJournalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConfiguredStrategyAdapterError
impl RefUnwindSafe for ConfiguredStrategyAdapterError
impl Send for ConfiguredStrategyAdapterError
impl Sync for ConfiguredStrategyAdapterError
impl Unpin for ConfiguredStrategyAdapterError
impl UnsafeUnpin for ConfiguredStrategyAdapterError
impl UnwindSafe for ConfiguredStrategyAdapterError
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