feat: derive defmt::Format for more structs and errors
Signed-off-by: Lachezar Lechev <elpiel93@gmail.com>
This commit is contained in:
parent
1b2ba0bfab
commit
c3f79c96ed
12 changed files with 40 additions and 6 deletions
|
|
@ -8,10 +8,15 @@ use crate::register;
|
|||
use crate::MacAddress;
|
||||
use embedded_nal::Ipv4Addr;
|
||||
|
||||
#[derive(Debug)]
|
||||
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||
pub struct HostConfig {
|
||||
mac: MacAddress,
|
||||
#[cfg_attr(feature = "defmt", defmt(Display2Format))]
|
||||
ip: Ipv4Addr,
|
||||
#[cfg_attr(feature = "defmt", defmt(Display2Format))]
|
||||
gateway: Ipv4Addr,
|
||||
#[cfg_attr(feature = "defmt", defmt(Display2Format))]
|
||||
subnet: Ipv4Addr,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue