harbourmaster 0.5.0

Convenient, high-level abstractions of running Docker containers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// Enum representing a port's communication protocol
#[derive(Debug, Clone, Copy)]
pub enum Protocol {
    /// TCP protocol
    Tcp,

    /// UDP protocol
    Udp,
}

impl AsRef<str> for Protocol {
    fn as_ref(&self) -> &str {
        match self {
            Protocol::Tcp => "tcp",
            Protocol::Udp => "udp",
        }
    }
}