pub struct StreamTextResult { /* private fields */ }Expand description
Result of a streaming text generation.
This struct wraps the underlying stream and provides methods to access it.
Implementations§
Source§impl StreamTextResult
impl StreamTextResult
Sourcepub fn stream_mut(
&mut self,
) -> Pin<&mut (dyn Stream<Item = Result<TextStreamPart>> + Send)>
pub fn stream_mut( &mut self, ) -> Pin<&mut (dyn Stream<Item = Result<TextStreamPart>> + Send)>
Returns a mutable reference to the stream.
Sourcepub fn into_stream(
self,
) -> Pin<Box<dyn Stream<Item = Result<TextStreamPart>> + Send>>
pub fn into_stream( self, ) -> Pin<Box<dyn Stream<Item = Result<TextStreamPart>> + Send>>
Consumes the result and returns the underlying stream.
Auto Trait Implementations§
impl Freeze for StreamTextResult
impl !RefUnwindSafe for StreamTextResult
impl Send for StreamTextResult
impl !Sync for StreamTextResult
impl Unpin for StreamTextResult
impl !UnwindSafe for StreamTextResult
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