pub struct PendingElicitation {
pub message: String,
pub requested_schema: Value,
pub reply_tx: Sender<ElicitationResponse>,
}Expand description
One server→client elicitation/create request
(crate::mcp::ElicitationRequest), waiting on Self::reply_tx for
the user’s answer. Uses a tokio::sync::oneshot (not std::sync::mpsc
like the two structs above) because
crate::mcp::McpElicitationHandler::handle is an ASYNC trait method —
it .awaits the reply rather than blocking a thread.
Fields§
§message: StringThe server’s human-readable prompt.
requested_schema: ValueJSON Schema for the requested input shape.
reply_tx: Sender<ElicitationResponse>Where to send the user’s answer.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PendingElicitation
impl !UnwindSafe for PendingElicitation
impl Freeze for PendingElicitation
impl Send for PendingElicitation
impl Sync for PendingElicitation
impl Unpin for PendingElicitation
impl UnsafeUnpin for PendingElicitation
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