pub struct Dashboard { /* private fields */ }Expand description
Stateful Ratatui dashboard model.
Implementations§
Source§impl Dashboard
impl Dashboard
Sourcepub fn set_history(&mut self, history: Vec<SessionHistoryEntry>)
pub fn set_history(&mut self, history: Vec<SessionHistoryEntry>)
Replace the recent history list.
Sourcepub fn insert_history_session(&mut self, session: SessionState)
pub fn insert_history_session(&mut self, session: SessionState)
Insert or replace a session loaded from history.
Sourcepub fn apply_event(&mut self, event: &SessionEvent, max_logs: usize)
pub fn apply_event(&mut self, event: &SessionEvent, max_logs: usize)
Apply a new runtime event to the dashboard state.
Sourcepub fn handle_key(&mut self, key: KeyEvent) -> Option<UiAction>
pub fn handle_key(&mut self, key: KeyEvent) -> Option<UiAction>
Handle a keyboard event and return any requested app-layer action.
Auto Trait Implementations§
impl Freeze for Dashboard
impl RefUnwindSafe for Dashboard
impl Send for Dashboard
impl Sync for Dashboard
impl Unpin for Dashboard
impl UnsafeUnpin for Dashboard
impl UnwindSafe for Dashboard
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