#[non_exhaustive]pub struct Work {
pub scanned: usize,
pub reexamined: usize,
}Expand description
The work one StreamParser::feed call did, as plain counts. The caller
does its own fuel accounting: it reserves part of a reply’s budget for the
final parse and charges provisional work separately.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.scanned: usizeReceived bytes consumed by the provisional machine. Each byte is scanned once; bytes past the reply limit are not scanned.
reexamined: usizeBytes of held, unresolved text examined again: when a held context resolves, fails, or reaches its cap, or when a completed tag or link is classified.
Trait Implementations§
impl Copy for Work
impl Eq for Work
impl StructuralPartialEq for Work
Auto Trait Implementations§
impl Freeze for Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnsafeUnpin for Work
impl UnwindSafe for Work
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