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