lumination 0.1.1

A very basic library to display network connections
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt;

#[derive(Debug)]
pub enum LuminationError {
    Net,
    Procs,
}

impl std::error::Error for LuminationError {}

impl fmt::Display for LuminationError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self {
            LuminationError::Net => write!(f, "Could not parse net connections"),
            LuminationError::Procs => write!(f, "Could not parse Processes connections"),
        }
    }
}