pub struct Part { /* private fields */ }Implementations§
Source§impl Part
impl Part
Sourcepub fn next_chunk(&mut self) -> Result<Option<Chunk>>
pub fn next_chunk(&mut self) -> Result<Option<Chunk>>
The next chunk of this range, or None once it has handed back every record that starts in
it.
The first call waits until the range’s true start is known, which usually means until the range before it has guessed.
§Errors
The error a single Reader over the whole file would have reported first, whichever range
it is in, once any range meets one.
Sourcepub fn bytes_read(&self) -> u64
pub fn bytes_read(&self) -> u64
How many bytes of the file this range’s reader has read.
The guess and a second split after a wrong one read the range too, and are not counted, so that the ranges of a file add up to about the file.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Part
impl !UnwindSafe for Part
impl Freeze for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnsafeUnpin for Part
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