pub struct SecurityLimits { /* private fields */ }
Available on crate feature
v1_19
only.Expand description
Security limits.
If you set a limit to 0, the limit is disabled.
Implementations§
Source§impl SecurityLimits
impl SecurityLimits
Sourcepub fn max_image_size_pixels(&self) -> u64
pub fn max_image_size_pixels(&self) -> u64
Limit on the maximum image size to avoid allocating too much memory. For example, setting this to 32768^2 pixels = 1 Gigapixels results in 1.5 GB memory need for YUV-4:2:0 or 4 GB for RGB32.
pub fn set_max_image_size_pixels(&mut self, v: u64)
pub fn max_number_of_tiles(&self) -> u64
pub fn set_max_number_of_tiles(&mut self, v: u64)
pub fn max_bayer_pattern_pixels(&self) -> u32
pub fn set_max_bayer_pattern_pixels(&mut self, v: u32)
pub fn max_items(&self) -> u32
pub fn set_max_items(&mut self, v: u32)
pub fn max_color_profile_size(&self) -> u32
pub fn set_max_color_profile_size(&mut self, v: u32)
pub fn max_memory_block_size(&self) -> u64
pub fn set_max_memory_block_size(&mut self, v: u64)
pub fn max_components(&self) -> u32
pub fn set_max_components(&mut self, v: u32)
pub fn max_iloc_extents_per_item(&self) -> u32
pub fn set_max_iloc_extents_per_item(&mut self, v: u32)
pub fn max_size_entity_group(&self) -> u32
pub fn set_max_size_entity_group(&mut self, v: u32)
Sourcepub fn max_children_per_box(&self) -> u32
pub fn max_children_per_box(&self) -> u32
For all boxes that are not covered by other limits.
pub fn set_max_children_per_box(&mut self, v: u32)
Trait Implementations§
Source§impl Clone for SecurityLimits
impl Clone for SecurityLimits
Source§fn clone(&self) -> SecurityLimits
fn clone(&self) -> SecurityLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for SecurityLimits
impl Default for SecurityLimits
impl Copy for SecurityLimits
Auto Trait Implementations§
impl Freeze for SecurityLimits
impl RefUnwindSafe for SecurityLimits
impl Send for SecurityLimits
impl Sync for SecurityLimits
impl Unpin for SecurityLimits
impl UnwindSafe for SecurityLimits
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