pub struct StreamHandle {
pub receiver: Pin<Box<dyn Stream<Item = StreamEvent> + Send>>,
}Expand description
Handle to a streaming completion response.
Fields§
§receiver: Pin<Box<dyn Stream<Item = StreamEvent> + Send>>The stream of events. Consume with StreamExt::next().
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamHandle
impl !RefUnwindSafe for StreamHandle
impl Send for StreamHandle
impl !Sync for StreamHandle
impl Unpin for StreamHandle
impl UnsafeUnpin for StreamHandle
impl !UnwindSafe for StreamHandle
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