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 SessionEventKind
impl Move for SessionEventKind
impl RefUnwindSafe for SessionEventKind
impl Send for SessionEventKind
impl Sync for SessionEventKind
impl Unpin for SessionEventKind
impl UnsafeUnpin for SessionEventKind
impl UnwindSafe for SessionEventKind
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