pub struct ReceiveStream { /* private fields */ }Expand description
A stream of data chunks received from USB during a download operation.
This stream yields Bytes chunks as they arrive from the device,
allowing memory-efficient streaming without buffering the entire file.
§Important
The MTP session is locked while this stream exists. You must consume the entire stream (or drop it) before calling other session methods.
Implementations§
Source§impl ReceiveStream
impl ReceiveStream
Sourcepub fn transaction_id(&self) -> u32
pub fn transaction_id(&self) -> u32
Get the transaction ID for this operation.
Auto Trait Implementations§
impl Freeze for ReceiveStream
impl !RefUnwindSafe for ReceiveStream
impl Send for ReceiveStream
impl Sync for ReceiveStream
impl Unpin for ReceiveStream
impl UnsafeUnpin for ReceiveStream
impl !UnwindSafe for ReceiveStream
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