pub struct SupervisorOutput {
pub events: Vec<SupervisorEvent>,
pub halt_actions: Vec<SupervisorHaltAction>,
pub halts: Vec<HaltInterval>,
pub unmarked_boundaries: u64,
}Expand description
Everything the supervisor decided during a portfolio replay.
Fields§
§events: Vec<SupervisorEvent>§halt_actions: Vec<SupervisorHaltAction>§halts: Vec<HaltInterval>Halt periods; a period without an end lasted until the run ended.
unmarked_boundaries: u64Boundaries at which no marked equity existed yet, during which a drawdown policy could not act.
Implementations§
Source§impl SupervisorOutput
impl SupervisorOutput
Sourcepub fn rejected_entries(&self) -> usize
pub fn rejected_entries(&self) -> usize
Number of Entries the supervisor rejected, leaving out rejected scale-ins.
Sourcepub fn halt_minutes(&self, run_end: NaiveDateTime) -> i64
pub fn halt_minutes(&self, run_end: NaiveDateTime) -> i64
Total halted time in whole minutes, where a period still in force at the end of the run runs to run_end.
Trait Implementations§
Source§impl Clone for SupervisorOutput
impl Clone for SupervisorOutput
Source§impl Debug for SupervisorOutput
impl Debug for SupervisorOutput
Source§impl PartialEq for SupervisorOutput
impl PartialEq for SupervisorOutput
Source§impl Serialize for SupervisorOutput
impl Serialize for SupervisorOutput
impl StructuralPartialEq for SupervisorOutput
Auto Trait Implementations§
impl Freeze for SupervisorOutput
impl RefUnwindSafe for SupervisorOutput
impl Send for SupervisorOutput
impl Sync for SupervisorOutput
impl Unpin for SupervisorOutput
impl UnsafeUnpin for SupervisorOutput
impl UnwindSafe for SupervisorOutput
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