pub enum LogViewerMessage {
Show 21 variants
ScrollUp,
ScrollDown,
ScrollToTop,
ScrollToBottom,
FocusSearch,
FocusLog,
SearchInput(char),
SearchBackspace,
SearchDelete,
SearchLeft,
SearchRight,
SearchHome,
SearchEnd,
ClearSearch,
ToggleInfo,
ToggleSuccess,
ToggleWarning,
ToggleError,
Push {
message: String,
level: StatusLogLevel,
timestamp: Option<String>,
},
Clear,
Remove(u64),
}Expand description
Messages that can be sent to a LogViewer.
Variants§
ScrollUp
Scroll the log up by one line.
ScrollDown
Scroll the log down by one line.
ScrollToTop
Scroll to the top of the log.
ScrollToBottom
Scroll to the bottom of the log.
FocusSearch
Focus the search bar.
FocusLog
Return focus to the log (and optionally clear search).
SearchInput(char)
Type a character in the search bar.
SearchBackspace
Delete character before cursor in search bar.
SearchDelete
Delete character at cursor in search bar.
SearchLeft
Move search cursor left.
SearchRight
Move search cursor right.
SearchHome
Move search cursor to start.
SearchEnd
Move search cursor to end.
ClearSearch
Clear the search text.
ToggleInfo
Toggle the Info level filter.
ToggleSuccess
Toggle the Success level filter.
ToggleWarning
Toggle the Warning level filter.
ToggleError
Toggle the Error level filter.
Push
Add an entry to the log.
Fields
§
level: StatusLogLevelThe severity level.
Clear
Clear all log entries.
Remove(u64)
Remove a specific entry by ID.
Trait Implementations§
Source§impl Clone for LogViewerMessage
impl Clone for LogViewerMessage
Source§fn clone(&self) -> LogViewerMessage
fn clone(&self) -> LogViewerMessage
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 moreSource§impl Debug for LogViewerMessage
impl Debug for LogViewerMessage
Source§impl PartialEq for LogViewerMessage
impl PartialEq for LogViewerMessage
impl Eq for LogViewerMessage
impl StructuralPartialEq for LogViewerMessage
Auto Trait Implementations§
impl Freeze for LogViewerMessage
impl RefUnwindSafe for LogViewerMessage
impl Send for LogViewerMessage
impl Sync for LogViewerMessage
impl Unpin for LogViewerMessage
impl UnsafeUnpin for LogViewerMessage
impl UnwindSafe for LogViewerMessage
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<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
Compare self to
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>
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