pub struct LitProcess { /* private fields */ }Implementations§
Source§impl LitProcess
impl LitProcess
pub async fn spawn(binary_path: PathBuf, model: String) -> Result<Self>
pub async fn send_prompt_stream( &self, prompt: &str, ) -> Result<impl Stream<Item = Result<String>>>
pub async fn send_prompt(&self, prompt: &str) -> Result<String>
pub async fn shutdown(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LitProcess
impl RefUnwindSafe for LitProcess
impl Send for LitProcess
impl Sync for LitProcess
impl Unpin for LitProcess
impl UnsafeUnpin for LitProcess
impl UnwindSafe for LitProcess
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