pub struct PluginClient { /* private fields */ }Implementations§
Source§impl PluginClient
impl PluginClient
pub fn spawn(command: &str, env_pass: &[String]) -> Result<Self>
pub fn spawn_command(command: Command) -> Result<Self>
pub async fn initialize( &mut self, req: InitializeRequest, ) -> Result<InitializeResponse>
pub async fn list_models(&mut self) -> Result<ListModelsResponse>
pub async fn complete( &mut self, req: CompleteRequest, ) -> Result<CompleteResponse>
pub async fn shutdown(&mut self) -> Result<()>
Trait Implementations§
Source§impl Drop for PluginClient
impl Drop for PluginClient
Auto Trait Implementations§
impl !RefUnwindSafe for PluginClient
impl !UnwindSafe for PluginClient
impl Freeze for PluginClient
impl Send for PluginClient
impl Sync for PluginClient
impl Unpin for PluginClient
impl UnsafeUnpin for PluginClient
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