pub struct BodyCappedHttpClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for BodyCappedHttpClient
impl Clone for BodyCappedHttpClient
Source§fn clone(&self) -> BodyCappedHttpClient
fn clone(&self) -> BodyCappedHttpClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl StreamableHttpClient for BodyCappedHttpClient
impl StreamableHttpClient for BodyCappedHttpClient
type Error = Error
async fn post_message( &self, uri: Arc<str>, message: ClientJsonRpcMessage, session_id: Option<Arc<str>>, auth_token: Option<String>, custom_headers: HashMap<HeaderName, HeaderValue>, ) -> Result<StreamableHttpPostResponse, StreamableHttpError<Self::Error>>
async fn delete_session( &self, uri: Arc<str>, session_id: Arc<str>, auth_token: Option<String>, custom_headers: HashMap<HeaderName, HeaderValue>, ) -> Result<(), StreamableHttpError<Self::Error>>
async fn get_stream( &self, uri: Arc<str>, session_id: Arc<str>, last_event_id: Option<String>, auth_token: Option<String>, custom_headers: HashMap<HeaderName, HeaderValue>, ) -> Result<BoxStream<'static, Result<Sse, SseError>>, StreamableHttpError<Self::Error>>
Auto Trait Implementations§
impl Freeze for BodyCappedHttpClient
impl !RefUnwindSafe for BodyCappedHttpClient
impl Send for BodyCappedHttpClient
impl Sync for BodyCappedHttpClient
impl Unpin for BodyCappedHttpClient
impl UnsafeUnpin for BodyCappedHttpClient
impl !UnwindSafe for BodyCappedHttpClient
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