pub struct DeviceListener { /* private fields */ }Expand description
Listens for iOS devices connecting over USB via Apple Mobile Support/usbmuxd
Implementations§
Source§impl DeviceListener
impl DeviceListener
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Produces a new device listener, registering with usbmuxd/apple mobile support service
§Errors
Can produce an error, most commonly when the mobile service isn’t available. It should be available on macOS, but on Windows it’s only available if Apple Mobile Support is installed, typically via iTunes.
Sourcepub fn next_event(&self) -> Option<DeviceEvent>
pub fn next_event(&self) -> Option<DeviceEvent>
Receives an event, None if there’s no pending events at this time
Auto Trait Implementations§
impl !Freeze for DeviceListener
impl !RefUnwindSafe for DeviceListener
impl Send for DeviceListener
impl !Sync for DeviceListener
impl Unpin for DeviceListener
impl UnwindSafe for DeviceListener
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