pub struct ImageLimits {
pub max_encoded_bytes: u64,
pub max_edge: u32,
pub max_pixels: u64,
pub max_decode_alloc: u64,
}Expand description
Limits enforced while inspecting and decoding an image.
Fields§
§max_encoded_bytes: u64Maximum encoded image bytes.
max_edge: u32Maximum width or height.
max_pixels: u64Maximum decoded pixel count.
max_decode_alloc: u64Maximum memory that the decoder may allocate.
Trait Implementations§
Source§impl Clone for ImageLimits
impl Clone for ImageLimits
Source§fn clone(&self) -> ImageLimits
fn clone(&self) -> ImageLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ImageLimits
Source§impl Debug for ImageLimits
impl Debug for ImageLimits
Source§impl Default for ImageLimits
impl Default for ImageLimits
impl Eq for ImageLimits
Source§impl PartialEq for ImageLimits
impl PartialEq for ImageLimits
impl StructuralPartialEq for ImageLimits
Auto Trait Implementations§
impl Freeze for ImageLimits
impl RefUnwindSafe for ImageLimits
impl Send for ImageLimits
impl Sync for ImageLimits
impl Unpin for ImageLimits
impl UnsafeUnpin for ImageLimits
impl UnwindSafe for ImageLimits
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