pub struct MCPServerConfig {
pub server_name: String,
pub server_version: String,
pub enable_dht_discovery: bool,
pub max_concurrent_requests: usize,
pub request_timeout: Duration,
pub enable_auth: bool,
pub enable_rate_limiting: bool,
pub rate_limit_rpm: u32,
pub enable_logging: bool,
pub max_tool_execution_time: Duration,
pub tool_memory_limit: u64,
}
Expand description
MCP server configuration
Fields§
§server_name: String
Server name
server_version: String
Server version
enable_dht_discovery: bool
Enable tool discovery via DHT
max_concurrent_requests: usize
Maximum concurrent requests
request_timeout: Duration
Request timeout
enable_auth: bool
Enable authentication
enable_rate_limiting: bool
Enable rate limiting
rate_limit_rpm: u32
Rate limit: requests per minute
enable_logging: bool
Enable request logging
max_tool_execution_time: Duration
Maximum tool execution time
tool_memory_limit: u64
Tool memory limit
Trait Implementations§
Source§impl Clone for MCPServerConfig
impl Clone for MCPServerConfig
Source§fn clone(&self) -> MCPServerConfig
fn clone(&self) -> MCPServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MCPServerConfig
impl Debug for MCPServerConfig
Source§impl Default for MCPServerConfig
impl Default for MCPServerConfig
Source§impl<'de> Deserialize<'de> for MCPServerConfig
impl<'de> Deserialize<'de> for MCPServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MCPServerConfig
impl RefUnwindSafe for MCPServerConfig
impl Send for MCPServerConfig
impl Sync for MCPServerConfig
impl Unpin for MCPServerConfig
impl UnwindSafe for MCPServerConfig
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