pub trait LLMClient: Send + Sync {
// Required method
fn completion(
&self,
completion: Completion,
) -> impl Future<Output = Result<CompletionResponse>> + Send;
// Provided method
fn into_arc(self) -> Arc<dyn LLMClientDyn> ⓘ
where Self: Sized + 'static { ... }
}Required Methods§
fn completion( &self, completion: Completion, ) -> impl Future<Output = Result<CompletionResponse>> + Send
Provided Methods§
fn into_arc(self) -> Arc<dyn LLMClientDyn> ⓘwhere
Self: Sized + 'static,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".