pub struct Limits {
pub encoded_bytes: usize,
pub source_edge: u32,
pub source_pixels: u64,
pub decoded_bytes: u64,
pub output_pixels: u64,
}Expand description
Limits for in-process PNG/JPEG thumbnails. For large files or hard deadlines, use the image worker instead. Larger configured values cannot exceed the hard ceilings: 32 MiB encoded, 16 megapixels, 128 MiB decoded and 4 megapixels output.
Fields§
§encoded_bytes: usize§source_edge: u32§source_pixels: u64§decoded_bytes: u64§output_pixels: u64Trait Implementations§
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