pub struct Limits {
pub metadata_chunk: u32,
pub metadata_count: u32,
pub pixels: u64,
pub maniac_nodes: u32,
}Expand description
Limits on input images to prevent OOM based DoS
Fields§
§metadata_chunk: u32max size of the compressed metadata in bytes (default: 1 MB)
metadata_count: u32max number of metadata entries (default: 8)
pixels: u64max number of pixels: width * height * frames (default: 67M = 226)
maniac_nodes: u32max number of MANIAC nodes (default: 16384 = 214)
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 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