pub struct StreamBody { /* private fields */ }Expand description
A streaming response body which yields chunks of the body as raw Bytes
as they arrive.
Implementations§
Source§impl StreamBody
impl StreamBody
Sourcepub async fn next_chunk(&mut self) -> Result<Option<Bytes>, CommonApiError>
pub async fn next_chunk(&mut self) -> Result<Option<Bytes>, CommonApiError>
Stream a chunk of the response body. Returns Ok(None) when the stream
is complete.
Auto Trait Implementations§
impl Freeze for StreamBody
impl !RefUnwindSafe for StreamBody
impl Send for StreamBody
impl Sync for StreamBody
impl Unpin for StreamBody
impl UnsafeUnpin for StreamBody
impl !UnwindSafe for StreamBody
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