pub struct MuxClient { /* private fields */ }Expand description
usbmuxd client for device discovery and connection.
Implementations§
Source§impl MuxClient
impl MuxClient
Sourcepub async fn list_devices(&mut self) -> Result<Vec<MuxDevice>, MuxError>
pub async fn list_devices(&mut self) -> Result<Vec<MuxDevice>, MuxError>
List all currently connected devices.
Sourcepub async fn read_buid(&mut self) -> Result<String, MuxError>
pub async fn read_buid(&mut self) -> Result<String, MuxError>
Read the system BUID from usbmuxd.
Sourcepub async fn read_pair_record(&mut self, udid: &str) -> Result<(), MuxError>
pub async fn read_pair_record(&mut self, udid: &str) -> Result<(), MuxError>
Send ReadPairRecord to usbmuxd (acknowledgment only; pair record is loaded from filesystem).
Sourcepub async fn connect_to_port(
self,
device_id: u32,
port: u16,
) -> Result<UsbmuxStream, MuxError>
pub async fn connect_to_port( self, device_id: u32, port: u16, ) -> Result<UsbmuxStream, MuxError>
Connect the stream to a device port. Consumes self; returns the raw stream.
Auto Trait Implementations§
impl !Freeze for MuxClient
impl RefUnwindSafe for MuxClient
impl Send for MuxClient
impl Sync for MuxClient
impl Unpin for MuxClient
impl UnsafeUnpin for MuxClient
impl UnwindSafe for MuxClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more