rmux-server 0.9.0

Tokio daemon and request dispatcher for the RMUX terminal multiplexer.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use rmux_proto::RmuxError;

pub(crate) fn config_error_lines(error: &RmuxError) -> Vec<String> {
    match error {
        RmuxError::Server(message) => message
            .lines()
            .filter(|line| !line.is_empty())
            .map(str::to_owned)
            .collect(),
        other => vec![other.to_string()],
    }
}