MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / new

Method new

euralios_std/src/net.rs:15–17  ·  view source on GitHub ↗

Create a new MacAddress from bytes

(octet: [u8; 6])

Source from the content-addressed store, hash-verified

13impl 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] {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected