pub struct InlineHandle { /* private fields */ }
Implementations§
Source§impl InlineHandle
impl InlineHandle
pub fn append_line(&self, kind: InlineMessageKind, segments: Vec<InlineSegment>)
pub fn inline(&self, kind: InlineMessageKind, segment: InlineSegment)
pub fn replace_last( &self, count: usize, kind: InlineMessageKind, lines: Vec<Vec<InlineSegment>>, )
pub fn set_prompt(&self, prefix: String, style: InlineTextStyle)
pub fn set_placeholder(&self, hint: Option<String>)
pub fn set_placeholder_with_style( &self, hint: Option<String>, style: Option<InlineTextStyle>, )
pub fn set_message_labels(&self, agent: Option<String>, user: Option<String>)
pub fn set_theme(&self, theme: InlineTheme)
pub fn set_cursor_visible(&self, visible: bool)
pub fn set_input_enabled(&self, enabled: bool)
pub fn clear_input(&self)
pub fn force_redraw(&self)
pub fn shutdown(&self)
Trait Implementations§
Source§impl Clone for InlineHandle
impl Clone for InlineHandle
Source§fn clone(&self) -> InlineHandle
fn clone(&self) -> InlineHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InlineHandle
impl RefUnwindSafe for InlineHandle
impl Send for InlineHandle
impl Sync for InlineHandle
impl Unpin for InlineHandle
impl UnwindSafe for InlineHandle
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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