pub struct BacktestJob {Show 13 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 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<AcceptedBacktestJobInput>,
}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.
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<AcceptedBacktestJobInput>Accepted request and immutable profile snapshot until the worker starts.
Trait Implementations§
Source§impl Clone for BacktestJob
impl Clone for BacktestJob
Source§fn clone(&self) -> BacktestJob
fn clone(&self) -> BacktestJob
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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
Mutably borrows from an owned value. Read more
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> ⓘ
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