Expand description
Advanced MAC address library.
§Usage
Add this to your Cargo.toml
:
[dependencies]
krata-advmac = "1.1.0"
§Features:
- EUI-48 and EUI-64.
- Extensive
no_std
support. serde
support (even onno_std
).const fn
address parser with convenience macros for compile-time address handling:mac6!
,mac8!
.- MAC address generation and editing.
Macros§
- Convenience macro for creating MacAddr6 in compile-time.
- Convenience macro for creating MacAddr8 in compile-time.
Structs§
- MAC address, represented as EUI-48
- MAC address, represented as EUI-64
Enums§
Constants§
- Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::Canonical.
- Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::Canonical.
- Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::ColonNotation.
- Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::ColonNotation.
- Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::DotNotation.
- Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::DotNotation.
- Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::Hexadecimal0x.
- Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::Hexadecimal0x.
- Size of formatted MAC using MacAddr6::format_string and MacAddrFormat::Hexadecimal.
- Size of formatted MAC using MacAddr8::format_string and MacAddrFormat::Hexadecimal.
- Maximum formatted size.