pub struct LocalTool { /* private fields */ }Expand description
Adapter that turns any async Fn(Value) -> Result<Value, KernelError>
into a Tool. Hosts can use this to surface existing async functions
to the kernel without writing a dedicated tool type.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocalTool
impl !RefUnwindSafe for LocalTool
impl Send for LocalTool
impl Sync for LocalTool
impl Unpin for LocalTool
impl UnsafeUnpin for LocalTool
impl !UnwindSafe for LocalTool
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