Struct systemctl_tui::components::home::Home
source · pub struct Home {
pub logger: Logger,
pub show_logger: bool,
pub all_units: Vec<UnitStatus>,
pub filtered_units: StatefulList<UnitStatus>,
pub logs: Vec<String>,
pub logs_scroll_offset: u16,
pub mode: Mode,
pub input: Input,
pub action_tx: Option<UnboundedSender<Action>>,
pub journalctl_tx: Option<Sender<String>>,
}Fields§
§logger: Logger§show_logger: bool§all_units: Vec<UnitStatus>§filtered_units: StatefulList<UnitStatus>§logs: Vec<String>§logs_scroll_offset: u16§mode: Mode§input: Input§action_tx: Option<UnboundedSender<Action>>§journalctl_tx: Option<Sender<String>>Implementations§
Trait Implementations§
source§impl Component for Home
impl Component for Home
fn init(&mut self, tx: UnboundedSender<Action>) -> Result<()>
fn handle_key_events(&mut self, key: KeyEvent) -> Action
fn dispatch(&mut self, action: Action) -> Option<Action>
fn render(&mut self, f: &mut Frame<'_>, rect: Rect)
fn handle_events(&mut self, event: Option<Event>) -> Action
fn handle_mouse_events(&mut self, mouse: MouseEvent) -> Action
Auto Trait Implementations§
impl !RefUnwindSafe for Home
impl Send for Home
impl Sync for Home
impl Unpin for Home
impl !UnwindSafe for Home
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>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.