pub struct StreamingView<'a> { /* private fields */ }Expand description
Streaming view widget for TUI
Displays streaming output with scrolling support and ANSI-aware rendering. Designed for showing live terminal output from agents.
Implementations§
Source§impl<'a> StreamingView<'a>
impl<'a> StreamingView<'a>
Sourcepub fn new(lines: &'a [OutputLine]) -> Self
pub fn new(lines: &'a [OutputLine]) -> Self
Create a new streaming view with the given output lines
Sourcepub fn from_strings(lines: &'a [String]) -> StreamingViewStrings<'a>
pub fn from_strings(lines: &'a [String]) -> StreamingViewStrings<'a>
Create from raw string lines
Sourcepub fn show_scrollbar(self, show: bool) -> Self
pub fn show_scrollbar(self, show: bool) -> Self
Set scrollbar visibility
Sourcepub fn fullscreen(self, fullscreen: bool) -> Self
pub fn fullscreen(self, fullscreen: bool) -> Self
Set fullscreen mode (changes styling)
Trait Implementations§
Source§impl StatefulWidget for StreamingView<'_>
impl StatefulWidget for StreamingView<'_>
Auto Trait Implementations§
impl<'a> Freeze for StreamingView<'a>
impl<'a> RefUnwindSafe for StreamingView<'a>
impl<'a> Send for StreamingView<'a>
impl<'a> Sync for StreamingView<'a>
impl<'a> Unpin for StreamingView<'a>
impl<'a> UnwindSafe for StreamingView<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more