pub struct PackAllocationError {
pub requested: usize,
pub active: usize,
pub cached: usize,
}Expand description
A body allocation failed after every configured decoder limit had passed.
This is deliberately distinct from PackReadError::Limit: allocator
availability is an environmental resource failure, not a deterministic
rejection by PackReadLimits.
Fields§
§requested: usizeLogical body bytes requested from the allocator.
active: usizeOther active logical body/delta bytes at the allocation point.
cached: usizeLogical body bytes retained in the decoder cache at the allocation point.
Trait Implementations§
Source§impl Clone for PackAllocationError
impl Clone for PackAllocationError
impl Copy for PackAllocationError
Source§impl Debug for PackAllocationError
impl Debug for PackAllocationError
impl Eq for PackAllocationError
Source§impl PartialEq for PackAllocationError
impl PartialEq for PackAllocationError
impl StructuralPartialEq for PackAllocationError
Auto Trait Implementations§
impl Freeze for PackAllocationError
impl RefUnwindSafe for PackAllocationError
impl Send for PackAllocationError
impl Sync for PackAllocationError
impl Unpin for PackAllocationError
impl UnsafeUnpin for PackAllocationError
impl UnwindSafe for PackAllocationError
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