pub struct McpClientBuilder { /* private fields */ }Expand description
Builder for creating MCP clients
Implementations§
Source§impl McpClientBuilder
impl McpClientBuilder
Sourcepub fn with_transport(self, transport: BoxedTransport) -> Self
pub fn with_transport(self, transport: BoxedTransport) -> Self
Set transport
Sourcepub fn with_url(self, url: &str) -> McpClientResult<Self>
pub fn with_url(self, url: &str) -> McpClientResult<Self>
Set transport from URL
Sourcepub fn with_config(self, config: ClientConfig) -> Self
pub fn with_config(self, config: ClientConfig) -> Self
Set configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for McpClientBuilder
impl !RefUnwindSafe for McpClientBuilder
impl Send for McpClientBuilder
impl Sync for McpClientBuilder
impl Unpin for McpClientBuilder
impl !UnwindSafe for McpClientBuilder
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