pub struct McpClientBuilder { /* private fields */ }Expand description
Builder for creating MCP clients with custom configuration.
Implementations§
Source§impl McpClientBuilder
impl McpClientBuilder
Sourcepub fn transport(self, config: TransportConfig) -> Self
pub fn transport(self, config: TransportConfig) -> Self
Set the transport configuration.
Sourcepub fn config(self, config: ClientConfig) -> Self
pub fn config(self, config: ClientConfig) -> Self
Set the client configuration.
Sourcepub fn notification_handler(self, handler: Box<dyn NotificationHandler>) -> Self
pub fn notification_handler(self, handler: Box<dyn NotificationHandler>) -> Self
Set a custom notification handler.
Sourcepub fn request_timeout(self, timeout: Duration) -> Self
pub fn request_timeout(self, timeout: Duration) -> Self
Set request timeout.
Sourcepub fn init_timeout(self, timeout: Duration) -> Self
pub fn init_timeout(self, timeout: Duration) -> Self
Set initialization timeout.
Sourcepub fn max_retries(self, retries: u32) -> Self
pub fn max_retries(self, retries: u32) -> Self
Set maximum retry attempts.
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