From 15261861e07ff024d164ad9aea57c88aee5107bf Mon Sep 17 00:00:00 2001 From: Jackson Coxson Date: Sun, 25 May 2025 17:01:44 -0600 Subject: [PATCH] Add IpAddr impl for RsdProvider --- idevice/src/provider.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/idevice/src/provider.rs b/idevice/src/provider.rs index bab7aeb..917fa18 100644 --- a/idevice/src/provider.rs +++ b/idevice/src/provider.rs @@ -157,3 +157,15 @@ impl IdeviceProvider for UsbmuxdProvider { }) } } + +#[cfg(feature = "tcp")] +impl<'a> RsdProvider<'a> for std::net::IpAddr { + async fn connect_to_service_port( + &'a mut self, + port: u16, + ) -> Result { + Ok(tokio::net::TcpStream::connect((*self, port)).await?) + } + + type Stream = tokio::net::TcpStream; +}