derive debug

This commit is contained in:
Alex Janka 2024-03-09 08:19:07 +11:00
parent dca67cb66e
commit 589542ec0b
2 changed files with 4 additions and 0 deletions

View file

@ -21,6 +21,7 @@ use crate::{
ConnectionError, HomekitError,
};
#[derive(Debug)]
pub(super) struct AccessorySocket {
socket: TcpStream,
ip: String,
@ -28,6 +29,7 @@ pub(super) struct AccessorySocket {
socket_encryption: Option<SocketEncryption>,
}
#[derive(Debug)]
struct SocketEncryption {
controller_to_accessory_key: [u8; 32],
controller_to_accessory_counter: u64,

View file

@ -60,6 +60,7 @@ impl PythonPairingData {
}
}
#[derive(Debug)]
struct DevicePairingData {
accessory_pairing_id: String,
accessory_ip: String,
@ -69,6 +70,7 @@ struct DevicePairingData {
ios_device_ltsk: [u8; 32],
}
#[derive(Debug)]
pub struct DeviceConnection {
pub accessories: HashMap<usize, Accessory>,
discovered: MdnsDiscoveredList,