pub struct PluginClient<T> { /* private fields */ }Implementations§
Source§impl<T> PluginClient<T>
impl<T> PluginClient<T>
pub fn new(transport: T) -> Self
pub async fn init( &self, ctx: SessionCtx, ) -> <T::Error as TransportResult<()>>::Output
pub async fn hook( &self, req: HookReq, ) -> <T::Error as TransportResult<HookResult>>::Output
pub async fn tool_call( &self, call: ToolCallReq, ) -> <T::Error as TransportResult<PluginToolResult>>::Output
pub async fn cancel_tool_call( &self, tool_call_id: String, ) -> <T::Error as TransportResult<()>>::Output
pub async fn session_start( &self, ctx: SessionCtx, ) -> <T::Error as TransportResult<()>>::Output
pub async fn idle(&self) -> <T::Error as TransportResult<()>>::Output
Auto Trait Implementations§
impl<T> Freeze for PluginClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for PluginClient<T>where
T: RefUnwindSafe,
impl<T> Send for PluginClient<T>where
T: Send,
impl<T> Sync for PluginClient<T>where
T: Sync,
impl<T> Unpin for PluginClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for PluginClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PluginClient<T>where
T: UnwindSafe,
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