pub struct Pinky { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Engine for Pinky
impl Engine for Pinky
Source§fn load_model<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_model_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load_model<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_model_path: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a model from a path
Source§fn unload_model<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unload_model<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Unload the currently loaded model to free resources
Source§fn infer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
prompt: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Receiver<Result<InferenceEvent>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn infer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
prompt: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Receiver<Result<InferenceEvent>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Run inference
Returns a channel of InferenceEvents
Auto Trait Implementations§
impl Freeze for Pinky
impl RefUnwindSafe for Pinky
impl Send for Pinky
impl Sync for Pinky
impl Unpin for Pinky
impl UnwindSafe for Pinky
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