BaseConfig

Trait BaseConfig 

Source
pub trait BaseConfig:
    Default
    + Serialize
    + for<'de> Deserialize<'de>
    + Clone
    + Send
    + Sync {
    // Required methods
    fn validate(&self) -> MCPResult<()>;
    fn config_name(&self) -> &'static str;
}
Expand description

Base configuration trait that all config structs should implement

Required Methods§

Source

fn validate(&self) -> MCPResult<()>

Validate the configuration

Source

fn config_name(&self) -> &'static str

Get configuration name for logging/debugging

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl BaseConfig for ultrafast_mcp_core::config::TimeoutConfig

Source§

impl BaseConfig for NetworkConfig

Source§

impl BaseConfig for RetryConfig

Source§

impl BaseConfig for SecurityConfig

Source§

impl BaseConfig for ultrafast_mcp_core::config::base::TimeoutConfig