pub struct SSEProxyRunnerAccess {
pub get_server_id: Arc<dyn Fn(&str) -> Result<ServerId> + Send + Sync>,
pub get_client: Arc<dyn Fn(ServerId) -> Result<McpClient> + Send + Sync>,
pub get_allowed_servers: Arc<dyn Fn() -> Option<Vec<String>> + Send + Sync>,
pub get_server_config_keys: Arc<dyn Fn() -> Vec<String> + Send + Sync>,
}Expand description
Access to McpRunner operations needed by the SSE proxy
This struct provides a controlled interface to the operations the SSE proxy needs from the McpRunner, rather than giving it direct access to the entire runner.
Fields§
§get_server_id: Arc<dyn Fn(&str) -> Result<ServerId> + Send + Sync>Function to get server ID by name
get_client: Arc<dyn Fn(ServerId) -> Result<McpClient> + Send + Sync>Function to get a client for a server
get_allowed_servers: Arc<dyn Fn() -> Option<Vec<String>> + Send + Sync>Function to get allowed servers if configured
get_server_config_keys: Arc<dyn Fn() -> Vec<String> + Send + Sync>Function to get server config keys
Trait Implementations§
Source§impl Clone for SSEProxyRunnerAccess
impl Clone for SSEProxyRunnerAccess
Source§fn clone(&self) -> SSEProxyRunnerAccess
fn clone(&self) -> SSEProxyRunnerAccess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SSEProxyRunnerAccess
impl !RefUnwindSafe for SSEProxyRunnerAccess
impl Send for SSEProxyRunnerAccess
impl Sync for SSEProxyRunnerAccess
impl Unpin for SSEProxyRunnerAccess
impl !UnwindSafe for SSEProxyRunnerAccess
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