pub struct Limits {Show 20 fields
pub max_nodes: u32,
pub max_edges: u32,
pub max_children: u32,
pub max_fields: u32,
pub max_parts: u32,
pub max_strings: u32,
pub max_string_bytes: u32,
pub max_blobs: u32,
pub max_blob_bytes: u32,
pub max_annotations: u32,
pub max_units: u32,
pub max_types: u32,
pub max_aux: u32,
pub max_numbers: u32,
pub max_secrets: u32,
pub max_secret_bytes: u32,
pub max_extensions: u32,
pub max_prov_entries: u32,
pub max_total_bytes: u64,
pub max_depth: u32,
}Expand description
Decode limits applied to every untrusted buffer.
Defaults are generous for real modules (millions of nodes) and tight
enough that a hostile 160-byte buffer cannot make a reader allocate
gigabytes. Every field is a hard ceiling; 0 is rejected at construction
(there is no unlimited mode).
Fields§
§max_nodes: u32§max_edges: u32§max_children: u32§max_fields: u32§max_parts: u32§max_strings: u32§max_string_bytes: u32§max_blobs: u32§max_blob_bytes: u32§max_annotations: u32§max_units: u32§max_types: u32§max_aux: u32§max_numbers: u32§max_secrets: u32§max_secret_bytes: u32§max_extensions: u32§max_prov_entries: u32§max_total_bytes: u64§max_depth: u32Implementations§
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.