pub struct RWRes {
pub read: Option<usize>,
pub wrote: Option<usize>,
}
Expand description
Holds results for endpoint read/write operations
Fields§
§read: Option<usize>
If there was a read operation returns number of data bytes that were read.
wrote: Option<usize>
If there was a write operation returns number of data bytes that were written. Setup packet is not included.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RWRes
impl RefUnwindSafe for RWRes
impl Send for RWRes
impl Sync for RWRes
impl Unpin for RWRes
impl UnwindSafe for RWRes
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