pub struct StreamingMarkdownState {
pub content: String,
pub streaming: bool,
pub cursor_visible: bool,
pub cursor_tick: u64,
pub in_code_block: bool,
pub code_block_lang: String,
}Expand description
State for a streaming markdown display.
Accumulates markdown chunks as they arrive from an LLM stream.
Pass to Context::streaming_markdown each frame.
Fields§
§content: StringThe accumulated markdown content.
streaming: boolWhether the stream is still receiving data.
cursor_visible: boolCursor blink state (for the typing indicator).
cursor_tick: u64§in_code_block: bool§code_block_lang: StringImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingMarkdownState
impl RefUnwindSafe for StreamingMarkdownState
impl Send for StreamingMarkdownState
impl Sync for StreamingMarkdownState
impl Unpin for StreamingMarkdownState
impl UnsafeUnpin for StreamingMarkdownState
impl UnwindSafe for StreamingMarkdownState
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