pub struct HTTPProvider { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for HTTPProvider
impl Clone for HTTPProvider
Source§fn clone(&self) -> HTTPProvider
fn clone(&self) -> HTTPProvider
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 InferenceProvider for HTTPProvider
impl InferenceProvider for HTTPProvider
fn generate<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
options: &'life2 GenerationOptions,
) -> Pin<Box<dyn Future<Output = Result<GenerationResponse, InferenceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn embed<'life0, 'life1, 'async_trait>(
&'life0 self,
_text: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<f32>, InferenceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for HTTPProvider
impl !RefUnwindSafe for HTTPProvider
impl Send for HTTPProvider
impl Sync for HTTPProvider
impl Unpin for HTTPProvider
impl !UnwindSafe for HTTPProvider
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