pub struct WorkspacesScreen { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Screen for WorkspacesScreen
impl Screen for WorkspacesScreen
Source§fn handle_key(&mut self, key: KeyEvent) -> bool
fn handle_key(&mut self, key: KeyEvent) -> bool
Handle a key event. Return
true if the event was consumed.Source§fn tick(&mut self, client: &MockForgeClient, tx: &UnboundedSender<Event>)
fn tick(&mut self, client: &MockForgeClient, tx: &UnboundedSender<Event>)
Called on tick to refresh data if needed. The screen can spawn
background fetches via the event sender.
Source§fn on_data(&mut self, payload: &str)
fn on_data(&mut self, payload: &str)
Ingest an event payload pushed by a background data fetcher.
Source§fn error(&self) -> Option<&str>
fn error(&self) -> Option<&str>
Return the current error message, if any. Used by the app to render
a persistent error banner while still showing stale data.
Source§fn force_refresh(&mut self)
fn force_refresh(&mut self)
Reset internal fetch timer so data is re-fetched on the next tick.
Source§fn status_hint(&self) -> &str
fn status_hint(&self) -> &str
Hint text for the status bar (screen-specific key hints).
Source§fn push_log_line(&mut self, _line: String)
fn push_log_line(&mut self, _line: String)
Push a single log line (only meaningful for the Logs screen).
Auto Trait Implementations§
impl Freeze for WorkspacesScreen
impl RefUnwindSafe for WorkspacesScreen
impl Send for WorkspacesScreen
impl Sync for WorkspacesScreen
impl Unpin for WorkspacesScreen
impl UnsafeUnpin for WorkspacesScreen
impl UnwindSafe for WorkspacesScreen
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> 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<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