pub struct ProxyHandlerManager { /* private fields */ }Implementations§
Source§impl ProxyHandlerManager
impl ProxyHandlerManager
pub fn add_mcp_service_status_and_proxy( &self, mcp_service_status: McpServiceStatus, proxy_handler: Option<ProxyHandler>, )
pub fn get_all_mcp_service_status(&self) -> Vec<McpServiceStatus>
pub fn get_mcp_service_status(&self, mcp_id: &str) -> Option<McpServiceStatus>
pub fn update_last_accessed(&self, mcp_id: &str)
pub fn update_mcp_service_status( &self, mcp_id: &str, status: CheckMcpStatusResponseStatus, )
pub fn get_proxy_handler(&self, mcp_id: &str) -> Option<ProxyHandler>
pub fn add_proxy_handler(&self, mcp_id: &str, proxy_handler: ProxyHandler)
pub async fn cleanup_resources(&self, mcp_id: &str) -> Result<()>
pub async fn cleanup_all_resources(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for ProxyHandlerManager
impl Clone for ProxyHandlerManager
Source§fn clone(&self) -> ProxyHandlerManager
fn clone(&self) -> ProxyHandlerManager
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 moreSource§impl Debug for ProxyHandlerManager
impl Debug for ProxyHandlerManager
Auto Trait Implementations§
impl Freeze for ProxyHandlerManager
impl !RefUnwindSafe for ProxyHandlerManager
impl Send for ProxyHandlerManager
impl Sync for ProxyHandlerManager
impl Unpin for ProxyHandlerManager
impl !UnwindSafe for ProxyHandlerManager
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