pub struct Limits {
pub max_frame_bytes: usize,
}Expand description
Resource budgets enforced by the decoder before allocating.
Fields§
§max_frame_bytes: usizeUpper bound on the decoder’s total peak frame-buffer memory in
bytes: the wire-byte buffer holding one frame’s plane data plus,
for streams deeper than 8 bits, the equally sized host-order u16
sample buffer. Exceeding it is Error::Limits, checked before
either buffer is allocated. Default: 1 GiB.
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnsafeUnpin for Limits
impl UnwindSafe for Limits
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