pub enum SessionEventKind {
ReadyForContinue,
SlotNotification(u64),
Paused(PausedEvent),
DiscoveryBatch(DiscoveryBatchEvent),
Error(BacktestError),
Success,
Completed {
summary: Option<SessionSummary>,
},
Status {
status: BacktestStatus,
},
}Expand description
What happened in one session of a parallel run: the event of sessionEventV2. Each
variant means what the BacktestResponse variant of the same name means, for that session
alone.
Variants§
ReadyForContinue
SlotNotification(u64)
Paused(PausedEvent)
DiscoveryBatch(DiscoveryBatchEvent)
Error(BacktestError)
Success
Completed
As BacktestResponse::Completed: this session is done; the others may still run.
Fields
§
summary: Option<SessionSummary>As in BacktestResponse::Completed.
Status
Fields
§
status: BacktestStatusImplementations§
Source§impl SessionEventKind
impl SessionEventKind
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Whether this session is over; see BacktestResponse::is_terminal.
Trait Implementations§
Source§impl Clone for SessionEventKind
impl Clone for SessionEventKind
Source§impl Debug for SessionEventKind
impl Debug for SessionEventKind
Source§impl<'de> Deserialize<'de> for SessionEventKind
impl<'de> Deserialize<'de> for SessionEventKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for SessionEventKind
impl Freeze for SessionEventKindwhere
*const u8 is !null: Freeze,
PhantomData<DiscoveryFilter>: Freeze,
PhantomData<EncodedBinary>: Freeze,
PhantomData<u32>: Freeze,
PhantomData<u8>: Freeze,
*const RerouteStatsReport is !null: Freeze,
PhantomData<RerouteStatsReport>: Freeze,
impl Move for SessionEventKind
impl RefUnwindSafe for SessionEventKind
impl Send for SessionEventKind
impl Sync for SessionEventKind
impl Unpin for SessionEventKind
impl UnsafeUnpin for SessionEventKindwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<DiscoveryFilter>: UnsafeUnpin,
PhantomData<EncodedBinary>: UnsafeUnpin,
PhantomData<u32>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const RerouteStatsReport is !null: UnsafeUnpin,
PhantomData<RerouteStatsReport>: UnsafeUnpin,
impl UnwindSafe for SessionEventKindwhere
RawVecInner: UnwindSafe,
BTreeMap<Address, SetValZST>: UnwindSafe,
BoxRaw<RerouteStatsReport>: UnwindSafe,
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