pub struct Client(/* private fields */);Implementations§
Source§impl Client
impl Client
pub async fn connect(host: HostOptions) -> Result<Self>
pub async fn connect_with_options( host: HostOptions, options: ClientOptions, ) -> Result<Self>
pub fn describe_command(lookup: &str) -> Result<Value>
pub fn subscribe(&self) -> Notifications
pub fn state_directory(&self) -> &Path
pub async fn open(&self, params: &DocOpenParams) -> Result<Document>
pub async fn open_with_options( &self, params: &DocOpenParams, options: OpenOptions, ) -> Result<Document>
pub async fn shutdown(&self) -> Result<()>
pub async fn get_tools(&self, provider: &str) -> Result<Value>
pub async fn get_system_prompt(&self) -> Result<Value>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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