pub struct RequestStream { /* private fields */ }Expand description
The outputs of one request, in order.
Implementations§
Source§impl RequestStream
impl RequestStream
Sourcepub async fn next(&mut self) -> Option<Result<OutputChunk, StreamError>>
pub async fn next(&mut self) -> Option<Result<OutputChunk, StreamError>>
The next chunk; None after the chunk with a finish reason or an
error.
Trait Implementations§
Source§impl Drop for RequestStream
impl Drop for RequestStream
Auto Trait Implementations§
impl !RefUnwindSafe for RequestStream
impl !UnwindSafe for RequestStream
impl Freeze for RequestStream
impl Send for RequestStream
impl Sync for RequestStream
impl Unpin for RequestStream
impl UnsafeUnpin for RequestStream
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