mtui 0.9.3

An extensive Modbus client for your terminal.
Documentation
1
2
3
4
5
6
7
8
9
use crate::state::State;

pub fn make_top_title(state: &State) -> &str {
    match state {
        State::Read(_) => "Read",
        State::Settings(_) => "Settings",
        State::Logs(_) => "Logs",
    }
}