pub struct McpServerOptions {
pub connect_timeout: Option<Duration>,
}Expand description
Per-server lifecycle options used by McpServerManager.
Fields§
§connect_timeout: Option<Duration>Maximum time allowed to establish a server connection — transport
setup and the MCP initialize handshake — and complete initial
discovery (tools/list, resources/list, and prompts/list).
Refresh discovery is bounded by the same duration.
Implementations§
Source§impl McpServerOptions
impl McpServerOptions
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Sets the connect timeout.
Trait Implementations§
Source§impl Clone for McpServerOptions
impl Clone for McpServerOptions
Source§fn clone(&self) -> McpServerOptions
fn clone(&self) -> McpServerOptions
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 McpServerOptions
impl Debug for McpServerOptions
Source§impl Default for McpServerOptions
impl Default for McpServerOptions
Source§fn default() -> McpServerOptions
fn default() -> McpServerOptions
Returns the “default value” for a type. Read more
impl Eq for McpServerOptions
Source§impl PartialEq for McpServerOptions
impl PartialEq for McpServerOptions
Source§fn eq(&self, other: &McpServerOptions) -> bool
fn eq(&self, other: &McpServerOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for McpServerOptions
Auto Trait Implementations§
impl Freeze for McpServerOptions
impl RefUnwindSafe for McpServerOptions
impl Send for McpServerOptions
impl Sync for McpServerOptions
impl Unpin for McpServerOptions
impl UnsafeUnpin for McpServerOptions
impl UnwindSafe for McpServerOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.