pub struct LocalRunnerClient<R: ModelRunner> { /* private fields */ }Expand description
Wrap any ModelRunner (including MockRunner) as an
InferenceClient. Single-runner concurrency is bounded by the
internal mutex; production setups should use the
EngineCoreActor from atomr-infer-runtime instead.
Implementations§
Trait Implementations§
Source§impl<R: ModelRunner + 'static> InferenceClient for LocalRunnerClient<R>
impl<R: ModelRunner + 'static> InferenceClient for LocalRunnerClient<R>
Auto Trait Implementations§
impl<R> Freeze for LocalRunnerClient<R>
impl<R> !RefUnwindSafe for LocalRunnerClient<R>
impl<R> Send for LocalRunnerClient<R>
impl<R> Sync for LocalRunnerClient<R>
impl<R> Unpin for LocalRunnerClient<R>
impl<R> UnsafeUnpin for LocalRunnerClient<R>
impl<R> !UnwindSafe for LocalRunnerClient<R>
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