pub struct AdvanceState {
pub expected_slots: u64,
pub slot_notifications: u64,
pub last_slot: Option<u64>,
pub statuses: Vec<BacktestStatus>,
pub ready_for_continue: bool,
pub completed: bool,
pub summary: Option<SessionSummary>,
}Expand description
Mutable state for driving a session with advance_step.
Fields§
§expected_slots: u64Expected number of slot notifications for this step.
slot_notifications: u64Count of slot notifications received so far.
last_slot: Option<u64>Most recent slot notification.
statuses: Vec<BacktestStatus>Status messages received so far.
ready_for_continue: boolWhether the session is ready for another Continue.
completed: boolWhether the session completed while advancing.
summary: Option<SessionSummary>Session summary received on completion (if send_summary was enabled).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvanceState
impl RefUnwindSafe for AdvanceState
impl Send for AdvanceState
impl Sync for AdvanceState
impl Unpin for AdvanceState
impl UnsafeUnpin for AdvanceState
impl UnwindSafe for AdvanceState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more