pub struct InferenceJob {
pub job_id: u64,
pub goal: String,
pub priority: u32,
pub deadline_tick: Option<u64>,
pub estimated_cost_ms: u64,
pub status: JobStatus,
pub submitted_at_tick: u64,
pub started_at_tick: Option<u64>,
pub completed_at_tick: Option<u64>,
}Expand description
A single inference job managed by the scheduler.
Fields§
§job_id: u64Unique identifier assigned at submission time.
goal: StringThe inference goal string.
priority: u32Higher values are scheduled first.
deadline_tick: Option<u64>Optional logical tick after which the job is considered expired.
estimated_cost_ms: u64Estimated execution time in milliseconds (advisory).
status: JobStatusCurrent lifecycle status.
submitted_at_tick: u64Logical tick at which the job was submitted.
started_at_tick: Option<u64>Logical tick at which execution began, if started.
completed_at_tick: Option<u64>Logical tick at which execution finished, if completed.
Implementations§
Source§impl InferenceJob
impl InferenceJob
Sourcepub fn latency_ticks(&self) -> Option<u64>
pub fn latency_ticks(&self) -> Option<u64>
Returns the end-to-end latency in ticks if the job has completed.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns true if the job is in a terminal state (no further transitions possible).
Trait Implementations§
Source§impl Clone for InferenceJob
impl Clone for InferenceJob
Source§fn clone(&self) -> InferenceJob
fn clone(&self) -> InferenceJob
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 Freeze for InferenceJob
impl RefUnwindSafe for InferenceJob
impl Send for InferenceJob
impl Sync for InferenceJob
impl Unpin for InferenceJob
impl UnsafeUnpin for InferenceJob
impl UnwindSafe for InferenceJob
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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