Add a method to extract the socket from the device

This commit is contained in:
Jackson Coxson
2025-08-06 15:40:21 -06:00
parent 5ae51d4fbb
commit 21584f4190

View File

@@ -116,6 +116,10 @@ impl Idevice {
}
}
pub fn get_socket(self) -> Option<Box<dyn ReadWrite>> {
self.socket
}
/// Queries the device type
///
/// Sends a QueryType request and parses the response