pub struct SSEProxyHandle { /* private fields */ }
Expand description
Handle for controlling the SSE proxy
This handle is stored by the McpRunner to communicate with the SSE proxy. It allows the runner to send updates to the proxy about server status changes and other events without needing to access the proxy directly.
Implementations§
Source§impl SSEProxyHandle
impl SSEProxyHandle
Sourcepub async fn update_server_info(
&self,
server_name: &str,
server_id: Option<ServerId>,
status: &str,
) -> Result<()>
pub async fn update_server_info( &self, server_name: &str, server_id: Option<ServerId>, status: &str, ) -> Result<()>
Update server information in the proxy
Sourcepub async fn add_server_info(
&self,
server_name: &str,
server_info: ServerInfo,
) -> Result<()>
pub async fn add_server_info( &self, server_name: &str, server_info: ServerInfo, ) -> Result<()>
Add a new server to the proxy cache
Sourcepub fn config(&self) -> &SSEProxyConfig
pub fn config(&self) -> &SSEProxyConfig
Get the proxy configuration
Trait Implementations§
Source§impl Clone for SSEProxyHandle
impl Clone for SSEProxyHandle
Source§fn clone(&self) -> SSEProxyHandle
fn clone(&self) -> SSEProxyHandle
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 SSEProxyHandle
impl !RefUnwindSafe for SSEProxyHandle
impl Send for SSEProxyHandle
impl Sync for SSEProxyHandle
impl Unpin for SSEProxyHandle
impl !UnwindSafe for SSEProxyHandle
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