pub enum Event {
Show 30 variants
Ready(Sender),
Received(Vec<Entry>),
Press(LineId, Modifiers),
Search(String),
NextMatch,
PreviousMatch,
ClearSearch,
FocusSearch,
ToggleLevel(Level),
Levels(Event<Level>),
FilterToLevel(LineId),
ToggleWrap,
TogglePause,
Clear,
CopySelection,
CopyLine(LineId),
CopyMessage(LineId),
ToggleHighlighted,
Follow(bool),
Next,
Previous,
First,
Last,
NextPage,
PreviousPage,
ExtendNext,
ExtendPrevious,
SelectAll,
Page(usize),
Focus(bool),
}log-viewer only.Expand description
Everything that changes a log.
Variants§
Ready(Sender)
The channel is open. Keep the sender and hand clones to producers.
Received(Vec<Entry>)
Entries from the channel, oldest first.
Press(LineId, Modifiers)
The pointer pressed a line with these modifiers held.
Search(String)
The search text changed.
NextMatch
PreviousMatch
ClearSearch
FocusSearch
Asks the app to focus the search field.
ToggleLevel(Level)
Shows or hides a level.
Levels(Event<Level>)
The level filters were pressed.
FilterToLevel(LineId)
Shows only the level of this line.
ToggleWrap
TogglePause
Pauses the stream, holding new entries back, or resumes it.
Clear
Removes every entry.
CopySelection
Copies the selected lines, or the highlighted one.
CopyLine(LineId)
Copies one line as plain text, as Entry::line formats it.
CopyMessage(LineId)
Copies only the message of one line.
ToggleHighlighted
Selects or deselects the highlighted line, keeping the others.
Follow(bool)
Starts or stops following the newest line. The log sends false
when the user scrolls away from the end, and true when they
scroll back.
Next
Previous
First
Last
Highlights the newest line and follows it.
NextPage
PreviousPage
ExtendNext
ExtendPrevious
SelectAll
Page(usize)
How many lines fit in the view. The log sends this itself.
Focus(bool)
The log gained or lost focus. The log sends this itself.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Event
impl !UnwindSafe for Event
impl Freeze for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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<State, Message> IntoBoot<State, Message> for State
impl<State, Message> IntoBoot<State, Message> for State
Source§fn into_boot(self) -> (State, Task<Message>)
fn into_boot(self) -> (State, Task<Message>)
Application.