pub struct ConfiguredStrategy { /* private fields */ }Implementations§
Source§impl ConfiguredStrategy
impl ConfiguredStrategy
pub fn compile( config: StrategyConfig, library: &MaterialLibrary, instance_id: impl Into<String>, primary_symbol: impl Into<String>, ) -> Result<Self, CompileError>
pub fn state_id(&self) -> &str
pub fn declared_sources(&self) -> &[SourceId]
pub fn primary_symbol(&self) -> &str
pub fn strategy_id(&self) -> &str
Sourcepub fn instance_id(&self) -> &str
pub fn instance_id(&self) -> &str
Instance identity; together with the strategy ID it scopes every generated campaign, trade, and command identifier.
Sourcepub fn numeric_descriptors(
&self,
) -> impl Iterator<Item = (&str, &NumericDescriptor)>
pub fn numeric_descriptors( &self, ) -> impl Iterator<Item = (&str, &NumericDescriptor)>
Effective numeric contracts in dependency order, keyed by configured material ID. Factories without a descriptor are omitted rather than assigned inferred semantics.
pub fn input_requirements(&self) -> &ConfiguredStrategyRequirements
pub fn trade_id_for_slot(&self, slot: &str) -> Option<&str>
pub fn evaluate( &mut self, input: &StrategyInput, ) -> Result<StrategyOutput, EvaluationError>
Sourcepub fn finalize_command_feedback(
&mut self,
feedback: &[CommandFeedback],
) -> Result<(), EvaluationError>
pub fn finalize_command_feedback( &mut self, feedback: &[CommandFeedback], ) -> Result<(), EvaluationError>
Commit feedback at an adapter-owned final boundary without evaluating market inputs or transitions.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfiguredStrategy
impl !Sync for ConfiguredStrategy
impl !UnwindSafe for ConfiguredStrategy
impl Freeze for ConfiguredStrategy
impl Send for ConfiguredStrategy
impl Unpin for ConfiguredStrategy
impl UnsafeUnpin for ConfiguredStrategy
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