pub struct DecodeBudget { /* private fields */ }Expand description
The decoding budget of one top-level call: Limits::max_decoded_total bytes, spent by
every filter stage of every stream the call decodes.
Create one per call (DecodeBudget::new) and pass it to every
filters::decode the call makes.
Added in 0.2.0.
Implementations§
Trait Implementations§
Source§impl Clone for DecodeBudget
impl Clone for DecodeBudget
impl Copy for DecodeBudget
Source§impl Debug for DecodeBudget
impl Debug for DecodeBudget
impl Eq for DecodeBudget
Source§impl PartialEq for DecodeBudget
impl PartialEq for DecodeBudget
impl StructuralPartialEq for DecodeBudget
Auto Trait Implementations§
impl Forget for DecodeBudget
impl Freeze for DecodeBudget
impl Move for DecodeBudget
impl RefUnwindSafe for DecodeBudget
impl Send for DecodeBudget
impl Sync for DecodeBudget
impl Unpin for DecodeBudget
impl UnsafeUnpin for DecodeBudget
impl UnwindSafe for DecodeBudget
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