pub struct StreamableHttpHandler { /* private fields */ }
Expand description
Streamable HTTP transport handler
Implementations§
Source§impl StreamableHttpHandler
impl StreamableHttpHandler
pub fn new( config: Arc<ServerConfig>, dispatcher: Arc<JsonRpcDispatcher<McpError>>, session_storage: Arc<BoxedSessionStorage>, stream_manager: Arc<StreamManager>, server_capabilities: ServerCapabilities, middleware_stack: Arc<MiddlewareStack>, ) -> Self
Trait Implementations§
Source§impl Clone for StreamableHttpHandler
impl Clone for StreamableHttpHandler
Source§fn clone(&self) -> StreamableHttpHandler
fn clone(&self) -> StreamableHttpHandler
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 StreamableHttpHandler
impl !RefUnwindSafe for StreamableHttpHandler
impl Send for StreamableHttpHandler
impl Sync for StreamableHttpHandler
impl Unpin for StreamableHttpHandler
impl !UnwindSafe for StreamableHttpHandler
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