pub struct StreamableHttpTransport { /* private fields */ }Implementations§
Source§impl StreamableHttpTransport
impl StreamableHttpTransport
pub fn new(config: StreamableHttpConfig) -> Self
pub fn new_with_client(config: StreamableHttpConfig, client: Client) -> Self
Trait Implementations§
Source§impl McpTransport for StreamableHttpTransport
impl McpTransport for StreamableHttpTransport
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
message: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn receive<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Option<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_connected(&self) -> bool
Auto Trait Implementations§
impl !Freeze for StreamableHttpTransport
impl !RefUnwindSafe for StreamableHttpTransport
impl Send for StreamableHttpTransport
impl Sync for StreamableHttpTransport
impl Unpin for StreamableHttpTransport
impl UnsafeUnpin for StreamableHttpTransport
impl !UnwindSafe for StreamableHttpTransport
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