pub struct StreamingTextState {
pub content: String,
pub streaming: bool,
/* private fields */
}Expand description
State for a streaming text display.
Accumulates text chunks as they arrive from an LLM stream.
Pass to Context::streaming_text each frame.
Fields§
§content: StringThe accumulated text content.
streaming: boolWhether the stream is still receiving data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingTextState
impl RefUnwindSafe for StreamingTextState
impl Send for StreamingTextState
impl Sync for StreamingTextState
impl Unpin for StreamingTextState
impl UnsafeUnpin for StreamingTextState
impl UnwindSafe for StreamingTextState
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