yapilt/src/ip_type.rs
Jan Christian Grünhage 6757ad28f8
initial commit
2020-04-19 15:40:43 +02:00

13 lines
253 B
Rust

#[derive(Debug, Copy, Clone)]
pub enum IpType { V4, V6 }
impl ToString for IpType {
fn to_string(&self) -> String {
match self {
Self::V4 => String::from("IPv4"),
Self::V6 => String::from("IPv6"),
}
}
}