pub struct ChatView { /* private fields */ }Implementations§
Source§impl ChatView
impl ChatView
pub fn new(title: &str) -> Self
Sourcepub fn stream(&mut self, delta: &str)
pub fn stream(&mut self, delta: &str)
Appends partial assistant output; anything past the 1 MiB reply limit is dropped.
pub fn streaming(&self) -> &str
pub fn take_clipboard(&mut self) -> Option<String>
pub fn draft(&self) -> &str
pub fn history(&self) -> &[HarnessMessage]
pub fn summary(&self) -> &ChatSummary
pub fn insert(&mut self, text: &str) -> Result<()>
pub fn submit(&mut self) -> Result<Vec<HarnessMessage>>
pub fn finish(&mut self, reply: Result<ChatReply, String>)
Auto Trait Implementations§
impl Forget for ChatView
impl Freeze for ChatView
impl RefUnwindSafe for ChatView
impl Send for ChatView
impl Sync for ChatView
impl Unpin for ChatView
impl UnsafeUnpin for ChatView
impl UnwindSafe for ChatView
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