pub struct LoadedInferenceBuilder<B: Backend, M> { /* private fields */ }Expand description
Builder returned after a model has been loaded or supplied ready for registering a handler.
Implementations§
Source§impl<B, M> LoadedInferenceBuilder<B, M>
impl<B, M> LoadedInferenceBuilder<B, M>
Sourcepub fn build<F, I, O, RO, Marker, S>(
self,
handler: F,
) -> Inference<B, M, I, O, S>where
F: IntoRoutine<InferenceContext<B, M, O, S>, I, RO, Marker>,
I: RoutineInput + 'static,
O: Send + 'static,
S: Send + Sync + 'static,
RO: InferenceOutput<B, M, O, S> + Sync + 'static,
pub fn build<F, I, O, RO, Marker, S>(
self,
handler: F,
) -> Inference<B, M, I, O, S>where
F: IntoRoutine<InferenceContext<B, M, O, S>, I, RO, Marker>,
I: RoutineInput + 'static,
O: Send + 'static,
S: Send + Sync + 'static,
RO: InferenceOutput<B, M, O, S> + Sync + 'static,
Finalize the construction of an Inference by supplying a handler routine implementation.
Auto Trait Implementations§
impl<B, M> Freeze for LoadedInferenceBuilder<B, M>where
M: Freeze,
impl<B, M> RefUnwindSafe for LoadedInferenceBuilder<B, M>where
M: RefUnwindSafe,
B: RefUnwindSafe,
impl<B, M> Send for LoadedInferenceBuilder<B, M>where
M: Send,
impl<B, M> Sync for LoadedInferenceBuilder<B, M>where
M: Sync,
impl<B, M> Unpin for LoadedInferenceBuilder<B, M>
impl<B, M> UnwindSafe for LoadedInferenceBuilder<B, M>where
M: UnwindSafe,
B: 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