pub struct BacktestJob {Show 16 fields
pub status: JobStatus,
pub submitted_at: Instant,
pub completed_at: Option<Instant>,
pub progress: BacktestProgress,
pub result: Option<BacktestResultMsg>,
pub artifact: Option<ResultArtifactRefMsg>,
pub checkpoint_artifact: Option<ResultArtifactRefMsg>,
pub inline_complete: bool,
pub artifact_consumed: bool,
pub error: Option<String>,
pub cancellation: JobCancellationToken,
pub worker_active: bool,
pub updates: Sender<BacktestStatusResponse>,
pub accepted: Option<AcceptedJobInput>,
pub kind: JobKind,
pub search: Option<SearchSummaryMsg>,
}Expand description
Internal representation of an async backtest job.
Fields§
§status: JobStatusCurrent job status.
submitted_at: InstantWhen the job was submitted.
completed_at: Option<Instant>When the job completed (if finished).
progress: BacktestProgressStructured loading and replay progress.
result: Option<BacktestResultMsg>Complete inline result or compact console summary.
artifact: Option<ResultArtifactRefMsg>Complete result artifact when the full inline object was released.
checkpoint_artifact: Option<ResultArtifactRefMsg>Separately labeled resumable checkpoint for a cancelled search.
inline_complete: boolTrue when the complete result is present in result.
artifact_consumed: boolTrue after the job artifact has been deleted following delivery.
error: Option<String>Error message (when failed).
cancellation: JobCancellationTokenCooperative cancellation shared with the blocking worker.
worker_active: boolTrue while a blocking worker slot is reserved or still accessing this job.
updates: Sender<BacktestStatusResponse>Coalesced current status published to server-streaming subscribers.
accepted: Option<AcceptedJobInput>Accepted request and immutable profile snapshot until the worker starts.
kind: JobKindWhich result endpoint serves this job.
search: Option<SearchSummaryMsg>Summary of a completed search; its complete output is the job artifact.
Trait Implementations§
Source§impl Clone for BacktestJob
impl Clone for BacktestJob
Auto Trait Implementations§
impl !RefUnwindSafe for BacktestJob
impl !UnwindSafe for BacktestJob
impl Freeze for BacktestJob
impl Send for BacktestJob
impl Sync for BacktestJob
impl Unpin for BacktestJob
impl UnsafeUnpin for BacktestJob
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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