pub enum StreamableHttpPostResponse {
Accepted,
Json(ServerJsonRpcMessage, Option<String>),
Sse(BoxStream<'static, Result<Sse, SseError>>, Option<String>),
}Available on crate feature
transport-streamable-http-client only.Variants§
Accepted
Json(ServerJsonRpcMessage, Option<String>)
Sse(BoxStream<'static, Result<Sse, SseError>>, Option<String>)
Implementations§
Source§impl StreamableHttpPostResponse
impl StreamableHttpPostResponse
pub async fn expect_initialized<E>( self, ) -> Result<(ServerJsonRpcMessage, Option<String>), StreamableHttpError<E>>
pub fn expect_json<E>( self, ) -> Result<ServerJsonRpcMessage, StreamableHttpError<E>>
pub fn expect_accepted<E>(self) -> Result<(), StreamableHttpError<E>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamableHttpPostResponse
impl !RefUnwindSafe for StreamableHttpPostResponse
impl Send for StreamableHttpPostResponse
impl !Sync for StreamableHttpPostResponse
impl Unpin for StreamableHttpPostResponse
impl UnsafeUnpin for StreamableHttpPostResponse
impl !UnwindSafe for StreamableHttpPostResponse
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