pub struct InputStreamed<I>(/* private fields */);Expand description
Type-state marker for a Chat that streams both outputs and inputs.
Built via [ChatBuilder::with_input_stream]. Gates the
Chat<CP, InputStreamed<I>>::stream(&mut messages, input) method,
which interleaves the model’s output stream with a caller-supplied
Stream<Item = PartEnum> input source.
Auto Trait Implementations§
impl<I> Freeze for InputStreamed<I>
impl<I> RefUnwindSafe for InputStreamed<I>
impl<I> Send for InputStreamed<I>
impl<I> Sync for InputStreamed<I>
impl<I> Unpin for InputStreamed<I>
impl<I> UnsafeUnpin for InputStreamed<I>
impl<I> UnwindSafe for InputStreamed<I>
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