dbus_server_address_parser/encode/
family.rs1use crate::Family;
2use std::fmt::{Display, Formatter, Result as FmtResult};
3
4impl Display for Family {
5 fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult {
6 write!(f, "family=")?;
7 match self {
8 Family::Ipv4 => write!(f, "ipv4"),
9 Family::Ipv6 => write!(f, "ipv6"),
10 }
11 }
12}