pub struct DecodeLimits {
pub max_pixels: u64,
pub max_tiles: u32,
pub max_decompressed: u64,
pub max_total_memory: u64,
}Expand description
Configurable decoder resource ceilings (review fix 3). Defaults are the format-derived maxima; callers decoding untrusted input can tighten any of them independently.
Fields§
§max_pixels: u64Max total pixels (w*h).
max_tiles: u32Max tiles.
max_decompressed: u64Max decompressed payload bytes.
max_total_memory: u64Max decoder memory (pixels + atlas), bytes.
Trait Implementations§
Source§impl Clone for DecodeLimits
impl Clone for DecodeLimits
impl Copy for DecodeLimits
Source§impl Debug for DecodeLimits
impl Debug for DecodeLimits
Auto Trait Implementations§
impl Freeze for DecodeLimits
impl RefUnwindSafe for DecodeLimits
impl Send for DecodeLimits
impl Sync for DecodeLimits
impl Unpin for DecodeLimits
impl UnsafeUnpin for DecodeLimits
impl UnwindSafe for DecodeLimits
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