derive debug
This commit is contained in:
parent
dca67cb66e
commit
589542ec0b
|
@ -21,6 +21,7 @@ use crate::{
|
||||||
ConnectionError, HomekitError,
|
ConnectionError, HomekitError,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub(super) struct AccessorySocket {
|
pub(super) struct AccessorySocket {
|
||||||
socket: TcpStream,
|
socket: TcpStream,
|
||||||
ip: String,
|
ip: String,
|
||||||
|
@ -28,6 +29,7 @@ pub(super) struct AccessorySocket {
|
||||||
socket_encryption: Option<SocketEncryption>,
|
socket_encryption: Option<SocketEncryption>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
struct SocketEncryption {
|
struct SocketEncryption {
|
||||||
controller_to_accessory_key: [u8; 32],
|
controller_to_accessory_key: [u8; 32],
|
||||||
controller_to_accessory_counter: u64,
|
controller_to_accessory_counter: u64,
|
||||||
|
|
|
@ -60,6 +60,7 @@ impl PythonPairingData {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
struct DevicePairingData {
|
struct DevicePairingData {
|
||||||
accessory_pairing_id: String,
|
accessory_pairing_id: String,
|
||||||
accessory_ip: String,
|
accessory_ip: String,
|
||||||
|
@ -69,6 +70,7 @@ struct DevicePairingData {
|
||||||
ios_device_ltsk: [u8; 32],
|
ios_device_ltsk: [u8; 32],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct DeviceConnection {
|
pub struct DeviceConnection {
|
||||||
pub accessories: HashMap<usize, Accessory>,
|
pub accessories: HashMap<usize, Accessory>,
|
||||||
discovered: MdnsDiscoveredList,
|
discovered: MdnsDiscoveredList,
|
||||||
|
|
Loading…
Reference in a new issue