pub struct ReadResult<B> {
pub buf: B,
pub bytes_read: u32,
}Expand description
Result of a read operation: the buffer and actual bytes read.
Fields§
§buf: BThe buffer containing the data read.
bytes_read: u32Number of bytes actually read (may be less than buffer capacity at EOF). Limited to ~2GB per operation.
Auto Trait Implementations§
impl<B> Freeze for ReadResult<B>where
B: Freeze,
impl<B> RefUnwindSafe for ReadResult<B>where
B: RefUnwindSafe,
impl<B> Send for ReadResult<B>where
B: Send,
impl<B> Sync for ReadResult<B>where
B: Sync,
impl<B> Unpin for ReadResult<B>where
B: Unpin,
impl<B> UnwindSafe for ReadResult<B>where
B: UnwindSafe,
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