Enum Progress
pub enum Progress {
Done(Scanned),
NeedMore,
}Expand description
What SegmentScanner::advance concluded from the bytes it was given.
Variants§
Done(Scanned)
The segment’s valid prefix and tail are known: the same result a scan of the whole file returns.
NeedMore
The verdict depends on bytes past the end of the prefix read so far.
Trait Implementations§
impl Eq for Progress
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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