pub struct InferenceJob<B: Backend, I: RoutineInput, S> { /* private fields */ }Expand description
Concrete job containing fully specified execution parameters passed to the runtime.
Implementations§
Source§impl<B, I, S> InferenceJob<B, I, S>
impl<B, I, S> InferenceJob<B, I, S>
Sourcepub fn builder(
input: <I as RoutineInput>::Inner<'static>,
) -> InferenceJobBuilder<B, I, S, StateMissing>
pub fn builder( input: <I as RoutineInput>::Inner<'static>, ) -> InferenceJobBuilder<B, I, S, StateMissing>
Create a new builder for an inference job for the given input payload.
Auto Trait Implementations§
impl<B, I, S> Freeze for InferenceJob<B, I, S>
impl<B, I, S> RefUnwindSafe for InferenceJob<B, I, S>where
<I as RoutineInput>::Inner<'static>: RefUnwindSafe,
S: RefUnwindSafe,
<B as Backend>::Device: RefUnwindSafe,
impl<B, I, S> Send for InferenceJob<B, I, S>
impl<B, I, S> Sync for InferenceJob<B, I, S>
impl<B, I, S> Unpin for InferenceJob<B, I, S>
impl<B, I, S> UnwindSafe for InferenceJob<B, I, S>where
<I as RoutineInput>::Inner<'static>: UnwindSafe,
S: UnwindSafe,
<B as Backend>::Device: 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
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