pub enum ChatViewMessage {
Show 23 variants
Input(char),
NewLine,
Backspace,
Delete,
Left,
Right,
Up,
Down,
Home,
End,
Submit,
ToggleFocus,
FocusInput,
FocusHistory,
ScrollUp,
ScrollDown,
ScrollToTop,
ScrollToBottom,
ClearInput,
InputStart,
InputEnd,
DeleteToEnd,
DeleteToStart,
}Expand description
Messages that can be sent to a ChatView.
Variants§
Input(char)
Type a character in the input field.
NewLine
Insert a newline in the input field.
Backspace
Delete the character before the cursor.
Delete
Delete the character at the cursor.
Left
Move cursor left in the input field.
Right
Move cursor right in the input field.
Up
Move cursor up in the input field or scroll history.
Down
Move cursor down in the input field or scroll history.
Home
Move cursor to start of line.
End
Move cursor to end of line.
Submit
Submit the current input as a user message.
ToggleFocus
Toggle focus between history and input.
FocusInput
Focus the input field.
FocusHistory
Focus the message history.
ScrollUp
Scroll history up by one line.
ScrollDown
Scroll history down by one line.
ScrollToTop
Scroll to the top of history.
ScrollToBottom
Scroll to the bottom of history (newest).
ClearInput
Clear the input field.
InputStart
Move cursor to the start of the input.
InputEnd
Move cursor to the end of the input.
DeleteToEnd
Delete from cursor to end of line.
DeleteToStart
Delete from line start to cursor.
Trait Implementations§
Source§impl Clone for ChatViewMessage
impl Clone for ChatViewMessage
Source§fn clone(&self) -> ChatViewMessage
fn clone(&self) -> ChatViewMessage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChatViewMessage
impl Debug for ChatViewMessage
Source§impl PartialEq for ChatViewMessage
impl PartialEq for ChatViewMessage
impl Eq for ChatViewMessage
impl StructuralPartialEq for ChatViewMessage
Auto Trait Implementations§
impl Freeze for ChatViewMessage
impl RefUnwindSafe for ChatViewMessage
impl Send for ChatViewMessage
impl Sync for ChatViewMessage
impl Unpin for ChatViewMessage
impl UnsafeUnpin for ChatViewMessage
impl UnwindSafe for ChatViewMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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>
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