pub struct ResponseStream<S: AsyncRead + Unpin> { /* private fields */ }
Expand description
Generated by Client::execute_once_stream or Client::execute_stream.
The ResponseStream does not implement futures::Stream
, because
futures::Stream
does not yet support GAT, so manually provide the
next method, which support the while let
syntax.
Implementations§
Source§impl<S: AsyncRead + Unpin> ResponseStream<S>
impl<S: AsyncRead + Unpin> ResponseStream<S>
pub async fn next(&mut self) -> Option<ClientResult<Content<'_>>>
Auto Trait Implementations§
impl<S> Freeze for ResponseStream<S>where
S: Freeze,
impl<S> RefUnwindSafe for ResponseStream<S>where
S: RefUnwindSafe,
impl<S> Send for ResponseStream<S>where
S: Send,
impl<S> Sync for ResponseStream<S>where
S: Sync,
impl<S> Unpin for ResponseStream<S>
impl<S> UnwindSafe for ResponseStream<S>where
S: UnwindSafe,
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