pub struct FrontendRequestBridge { /* private fields */ }Expand description
Pre-runtime bridge for MCP clients that must receive their elicitation handler before they are consumed into agent tool registration.
Implementations§
Source§impl FrontendRequestBridge
impl FrontendRequestBridge
Sourcepub fn new() -> Self
pub fn new() -> Self
Create an unbound bridge. Pass it to
RpcEngine::new_named_with_frontend_bridge after MCP registration.
Sourcepub fn elicitation_handler(&self) -> Arc<dyn McpElicitationHandler> ⓘ
pub fn elicitation_handler(&self) -> Arc<dyn McpElicitationHandler> ⓘ
Handler installed on every interactive MCP client before registration.
Trait Implementations§
Source§impl Clone for FrontendRequestBridge
impl Clone for FrontendRequestBridge
Source§fn clone(&self) -> FrontendRequestBridge
fn clone(&self) -> FrontendRequestBridge
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 moreAuto Trait Implementations§
impl Freeze for FrontendRequestBridge
impl RefUnwindSafe for FrontendRequestBridge
impl Send for FrontendRequestBridge
impl Sync for FrontendRequestBridge
impl Unpin for FrontendRequestBridge
impl UnsafeUnpin for FrontendRequestBridge
impl UnwindSafe for FrontendRequestBridge
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