Create a new MacAddress from bytes
(octet: [u8; 6])
| 13 | impl MacAddress { |
| 14 | /// Create a new MacAddress from bytes |
| 15 | pub fn new(octet: [u8; 6]) -> Self { |
| 16 | MacAddress{octet} |
| 17 | } |
| 18 | |
| 19 | /// Return the address as an array of bytes |
| 20 | pub fn bytes(&self) -> [u8; 6] { |
nothing calls this directly
no outgoing calls
no test coverage detected