pub enum ServerHttpEndpointResponse {
Immediate(HttpResponse),
ModernSse(ServerHttpSseResponse),
LegacySse(DualEraHttpLegacySseResponse),
}Expand description
A response emitted by ServerHttpSession::handle.
Variants§
Immediate(HttpResponse)
A complete response, including modern JSON and legacy POST acknowledgement.
ModernSse(ServerHttpSseResponse)
A finite modern request-scoped SSE response body.
LegacySse(DualEraHttpLegacySseResponse)
A live exact MCP 2024-11-05 SSE stream.
Auto Trait Implementations§
impl !Freeze for ServerHttpEndpointResponse
impl !RefUnwindSafe for ServerHttpEndpointResponse
impl !UnwindSafe for ServerHttpEndpointResponse
impl Send for ServerHttpEndpointResponse
impl Sync for ServerHttpEndpointResponse
impl Unpin for ServerHttpEndpointResponse
impl UnsafeUnpin for ServerHttpEndpointResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).