pub struct OwnedChannel<R: ReadWrite> { /* private fields */ }Expand description
Owned handle to a specific communication channel.
This mirrors pymobiledevice3’s DTXChannel lifetime model more closely
than the borrowed Channel: it keeps only the shared transport state and
the channel code, so service/proxy wrappers can outlive a temporary
&mut RemoteServerClient borrow.
Implementations§
Source§impl<R: ReadWrite + 'static> OwnedChannel<R>
impl<R: ReadWrite + 'static> OwnedChannel<R>
Sourcepub async fn read_message(&mut self) -> Result<Message, IdeviceError>
pub async fn read_message(&mut self) -> Result<Message, IdeviceError>
Reads the next queued message from this channel.
Trait Implementations§
Source§impl<R: ReadWrite> Clone for OwnedChannel<R>
impl<R: ReadWrite> Clone for OwnedChannel<R>
Auto Trait Implementations§
impl<R> !RefUnwindSafe for OwnedChannel<R>
impl<R> !UnwindSafe for OwnedChannel<R>
impl<R> Freeze for OwnedChannel<R>
impl<R> Send for OwnedChannel<R>
impl<R> Sync for OwnedChannel<R>
impl<R> Unpin for OwnedChannel<R>
impl<R> UnsafeUnpin for OwnedChannel<R>
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