Lines Matching refs:MacAddress
118 pub struct MacAddress { struct
124 impl MacAddress { argument
130 impl FromStr for MacAddress { implementation
139 let mut result = MacAddress { in from_str()
153 impl Display for MacAddress { implementation
256 fn mac_address(&self) -> Result<MacAddress>; in mac_address() argument
259 fn set_mac_address(&self, mac_addr: MacAddress) -> Result<()>; in set_mac_address()
398 fn mac_address(&self) -> Result<MacAddress> { in mac_address() argument
420 fn set_mac_address(&self, mac_addr: MacAddress) -> Result<()> { in set_mac_address()
575 fn mac_address(&self) -> Result<MacAddress> { in mac_address() argument
579 fn set_mac_address(&self, _: MacAddress) -> Result<()> { in set_mac_address()
647 assert!("01:02:03:04:05:06".parse::<MacAddress>().is_ok()); in parse_mac_address()
648 assert!("01:06".parse::<MacAddress>().is_err()); in parse_mac_address()
649 assert!("01:02:03:04:05:06:07:08:09".parse::<MacAddress>().is_err()); in parse_mac_address()
650 assert!("not a mac address".parse::<MacAddress>().is_err()); in parse_mac_address()
663 let mac_addr: MacAddress = "a2:06:b9:3d:68:4d".parse().unwrap(); in tap_configure()