pub struct NetworkMonitorClient<'a, R: ReadWrite> { /* private fields */ }Expand description
Client for monitoring network connections
Implementations§
Source§impl<'a, R: ReadWrite> NetworkMonitorClient<'a, R>
impl<'a, R: ReadWrite> NetworkMonitorClient<'a, R>
pub async fn new( client: &'a mut RemoteServerClient<R>, ) -> Result<Self, IdeviceError>
Sourcepub async fn start_monitoring(&mut self) -> Result<(), IdeviceError>
pub async fn start_monitoring(&mut self) -> Result<(), IdeviceError>
Starts monitoring. No reply is expected.
Sourcepub async fn stop_monitoring(&mut self) -> Result<(), IdeviceError>
pub async fn stop_monitoring(&mut self) -> Result<(), IdeviceError>
Stops monitoring.
Sourcepub async fn next_event(&mut self) -> Result<NetworkEvent, IdeviceError>
pub async fn next_event(&mut self) -> Result<NetworkEvent, IdeviceError>
Reads the next network event from the device. The device pushes events as arrays: [type, [args…]].
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> !RefUnwindSafe for NetworkMonitorClient<'a, R>
impl<'a, R> !UnwindSafe for NetworkMonitorClient<'a, R>
impl<'a, R> Forget for NetworkMonitorClient<'a, R>
impl<'a, R> Freeze for NetworkMonitorClient<'a, R>
impl<'a, R> Send for NetworkMonitorClient<'a, R>
impl<'a, R> Sync for NetworkMonitorClient<'a, R>
impl<'a, R> Unpin for NetworkMonitorClient<'a, R>
impl<'a, R> UnsafeUnpin for NetworkMonitorClient<'a, R>where
Channel<'a, R>: UnsafeUnpin,
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