pub struct InferenceClient<Server: InferenceServer + 'static, Channel: 'static> { /* private fields */ }Implementations§
Source§impl<Server, Channel> InferenceClient<Server, Channel>where
Server: InferenceServer,
Channel: InferenceChannel<Server>,
impl<Server, Channel> InferenceClient<Server, Channel>where
Server: InferenceServer,
Channel: InferenceChannel<Server>,
Trait Implementations§
Source§impl<Server: Clone + InferenceServer + 'static, Channel: Clone + 'static> Clone for InferenceClient<Server, Channel>
impl<Server: Clone + InferenceServer + 'static, Channel: Clone + 'static> Clone for InferenceClient<Server, Channel>
Source§fn clone(&self) -> InferenceClient<Server, Channel>
fn clone(&self) -> InferenceClient<Server, Channel>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Server: Debug + InferenceServer + 'static, Channel: Debug + 'static> Debug for InferenceClient<Server, Channel>
impl<Server: Debug + InferenceServer + 'static, Channel: Debug + 'static> Debug for InferenceClient<Server, Channel>
Source§impl<Server, Channel> InferencePlugin for InferenceClient<Server, Channel>where
Server: InferenceServer + 'static,
Channel: InferenceChannel<Server> + 'static,
impl<Server, Channel> InferencePlugin for InferenceClient<Server, Channel>where
Server: InferenceServer + 'static,
Channel: InferenceChannel<Server> + 'static,
fn clone_box(&self) -> Box<dyn InferencePlugin>
fn downloader(&self) -> Option<fn() -> InferenceResult<Option<Stats>>>
fn is_downloaded(&self) -> bool
fn deleter(&self) -> Option<fn() -> InferenceResult<Option<Stats>>>
fn parse_cli_config(&self, args: &ArgMatches)
fn parse_json_config(&self, json: &str)
fn load(&self) -> InferenceResult<Option<Stats>>
fn is_loaded(&self) -> bool
fn unload(&self) -> InferenceResult<Option<Stats>>
fn run_job(&self, job: InferenceJob) -> InferenceResult<Stats>
fn model_name(&self) -> &'static str
fn model_cli_param_name(&self) -> &'static str
fn model_creation_date(&self) -> &'static str
fn owned_by(&self) -> &'static str
fn create_cli_flags_fn(&self) -> CreateCliFlagsFn
fn clear_state(&self) -> InferenceResult<()>
Auto Trait Implementations§
impl<Server, Channel> Freeze for InferenceClient<Server, Channel>where
Channel: Freeze,
impl<Server, Channel> RefUnwindSafe for InferenceClient<Server, Channel>where
Channel: RefUnwindSafe,
Server: RefUnwindSafe,
impl<Server, Channel> Send for InferenceClient<Server, Channel>where
Channel: Send,
impl<Server, Channel> Sync for InferenceClient<Server, Channel>where
Channel: Sync,
impl<Server, Channel> Unpin for InferenceClient<Server, Channel>
impl<Server, Channel> UnwindSafe for InferenceClient<Server, Channel>where
Channel: UnwindSafe,
Server: 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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