pub struct ChatCompletionStream {
pub stream: Pin<Box<dyn Stream<Item = Result<ChatCompletionChunk, AiMuxError>> + Send>>,
}Expand description
A streaming OpenAI Chat Completions result.
Fields§
§stream: Pin<Box<dyn Stream<Item = Result<ChatCompletionChunk, AiMuxError>> + Send>>The stream of ChatCompletionChunk items.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChatCompletionStream
impl !Sync for ChatCompletionStream
impl !UnwindSafe for ChatCompletionStream
impl Freeze for ChatCompletionStream
impl Send for ChatCompletionStream
impl Unpin for ChatCompletionStream
impl UnsafeUnpin for ChatCompletionStream
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