pub struct WorkBudget { /* private fields */ }Available on crate feature
caller-workspace only.Expand description
Work a caller allows its decode steps, in units charged before the work they pay for runs.
One unit is charged per input byte consumed (frame and block headers,
block contents, skippable frames, checksums), and one per byte a block may
produce, before it is produced: a Raw block’s bytes as each part of it is
copied, an RLE block’s stated size, and a compressed block’s frame block
maximum plus COMPRESSED_BLOCK_UNITS for its table builds. A charge the
budget cannot cover refuses the step before that work starts.
Implementations§
Trait Implementations§
Source§impl Clone for WorkBudget
impl Clone for WorkBudget
impl Copy for WorkBudget
Source§impl Debug for WorkBudget
impl Debug for WorkBudget
impl Eq for WorkBudget
Source§impl PartialEq for WorkBudget
impl PartialEq for WorkBudget
impl StructuralPartialEq for WorkBudget
Auto Trait Implementations§
impl Freeze for WorkBudget
impl RefUnwindSafe for WorkBudget
impl Send for WorkBudget
impl Sync for WorkBudget
impl Unpin for WorkBudget
impl UnsafeUnpin for WorkBudget
impl UnwindSafe for WorkBudget
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