pub enum CostProfile {
None,
Typical,
WorstCase,
}Expand description
Execution-robustness profile: a named bundle of a CostModel plus a logical
decision-to-fill delay (how many sim-bars an order waits before it becomes
eligible to fill). Lets “score this agent under worst-case execution” be a
single swappable axis rather than hand-tuned cost fields scattered per test.
Variants§
None
Frictionless: no fees, no slippage, no impact, no delay. The ceiling case.
Typical
A realistic retail/institutional blend — the default-ish baseline.
WorstCase
Stressed execution: wide fees + slippage + impact and a multi-bar fill delay.
Implementations§
Source§impl CostProfile
impl CostProfile
Sourcepub fn resolve(self) -> ExecutionProfile
pub fn resolve(self) -> ExecutionProfile
Resolve this profile to its CostModel and decision-to-fill delay.
Trait Implementations§
Source§impl Clone for CostProfile
impl Clone for CostProfile
Source§fn clone(&self) -> CostProfile
fn clone(&self) -> CostProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CostProfile
Source§impl Debug for CostProfile
impl Debug for CostProfile
impl Eq for CostProfile
Source§impl PartialEq for CostProfile
impl PartialEq for CostProfile
Source§fn eq(&self, other: &CostProfile) -> bool
fn eq(&self, other: &CostProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CostProfile
Auto Trait Implementations§
impl Freeze for CostProfile
impl RefUnwindSafe for CostProfile
impl Send for CostProfile
impl Sync for CostProfile
impl Unpin for CostProfile
impl UnsafeUnpin for CostProfile
impl UnwindSafe for CostProfile
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