karyon_p2p/conn_direction.rs
1use std::fmt;
2
3#[derive(Clone, Debug)]
4pub enum ConnDirection {
5 Inbound,
6 Outbound,
7}
8
9impl fmt::Display for ConnDirection {
10 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
11 match self {
12 ConnDirection::Inbound => write!(f, "Inbound"),
13 ConnDirection::Outbound => write!(f, "Outbound"),
14 }
15 }
16}