pub struct EventStream(/* private fields */);Expand description
A real-time filterable event feed with severity coloring and structured fields.
Displays structured events with typed key-value fields, severity levels, and real-time filtering. Each event has an ID, timestamp, level, message, optional source, and structured fields displayed as columns.
§Key Bindings (List Mode)
Up/k– Scroll upDown/j– Scroll downHome/g– Scroll to topEnd/G– Scroll to bottom/– Focus filter input1-5– Quick level filter (1=Trace, 2=Debug, 3=Info, 4=Warning, 5=Error)f– Toggle auto-scroll
§Key Bindings (Search Mode)
Escape– Clear search and return to listEnter– Return to list (keep search text)- Standard text editing keys
Trait Implementations§
Source§impl Component for EventStream
impl Component for EventStream
Source§type State = EventStreamState
type State = EventStreamState
The component’s internal state type. Read more
Source§type Message = EventStreamMessage
type Message = EventStreamMessage
Messages this component can receive. Read more
Source§type Output = EventStreamOutput
type Output = EventStreamOutput
Messages this component can emit to its parent. Read more
Source§fn handle_event(
state: &Self::State,
event: &Event,
ctx: &EventContext,
) -> Option<Self::Message>
fn handle_event( state: &Self::State, event: &Event, ctx: &EventContext, ) -> Option<Self::Message>
Maps an input event to a component message. Read more
Source§fn update(state: &mut Self::State, msg: Self::Message) -> Option<Self::Output>
fn update(state: &mut Self::State, msg: Self::Message) -> Option<Self::Output>
Update component state based on a message. Read more
Source§fn view(state: &Self::State, ctx: &mut RenderContext<'_, '_>)
fn view(state: &Self::State, ctx: &mut RenderContext<'_, '_>)
Render the component to the given area. Read more
Source§fn traced_view(state: &Self::State, ctx: &mut RenderContext<'_, '_>)
fn traced_view(state: &Self::State, ctx: &mut RenderContext<'_, '_>)
Renders the component with optional tracing instrumentation. Read more
Source§fn dispatch_event(
state: &mut Self::State,
event: &Event,
ctx: &EventContext,
) -> Option<Self::Output>
fn dispatch_event( state: &mut Self::State, event: &Event, ctx: &EventContext, ) -> Option<Self::Output>
Dispatches an event by mapping it to a message and updating state. Read more
Auto Trait Implementations§
impl Freeze for EventStream
impl RefUnwindSafe for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnsafeUnpin for EventStream
impl UnwindSafe for EventStream
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> 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