pub struct UserQuestionHandler(pub Arc<dyn McpElicitationHandler>);Expand description
The handler ask_user asks through, wrapped so ToolContext can stay
Debug — the same newtype shape (and the same reason) as
crate::tools::ToolApprovalHandler.
Tuple Fields§
§0: Arc<dyn McpElicitationHandler>Trait Implementations§
Source§impl Clone for UserQuestionHandler
impl Clone for UserQuestionHandler
Source§fn clone(&self) -> UserQuestionHandler
fn clone(&self) -> UserQuestionHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UserQuestionHandler
impl Debug for UserQuestionHandler
Auto Trait Implementations§
impl !RefUnwindSafe for UserQuestionHandler
impl !UnwindSafe for UserQuestionHandler
impl Freeze for UserQuestionHandler
impl Send for UserQuestionHandler
impl Sync for UserQuestionHandler
impl Unpin for UserQuestionHandler
impl UnsafeUnpin for UserQuestionHandler
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