pub enum CallbackKind {
Sync(SyncToolExec),
Async(AsyncToolExec),
}Expand description
Sync or async callback for a registered tool.
Variants§
Sync(SyncToolExec)
Synchronous callback — blocks until complete.
Async(AsyncToolExec)
Asynchronous callback — .awaited inside the interpreter.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CallbackKind
impl !UnwindSafe for CallbackKind
impl Freeze for CallbackKind
impl Send for CallbackKind
impl Sync for CallbackKind
impl Unpin for CallbackKind
impl UnsafeUnpin for CallbackKind
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