pub struct NativeBinding { /* private fields */ }Expand description
Default binding: delegate directly to the Tool::call implementation.
Assigned to every tool registered via Registry::register; the 9 built-in
tools continue to run through it.
Implementations§
Trait Implementations§
Source§impl Binding for NativeBinding
impl Binding for NativeBinding
fn name(&self) -> &'static str
fn call<'a>( &'a self, _tool_def: &'a ToolDefinition, args: Value, ctx: &'a CallContext, ) -> BindingFuture<'a>
Auto Trait Implementations§
impl Freeze for NativeBinding
impl !RefUnwindSafe for NativeBinding
impl Send for NativeBinding
impl Sync for NativeBinding
impl Unpin for NativeBinding
impl UnsafeUnpin for NativeBinding
impl !UnwindSafe for NativeBinding
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