pub struct ProgramDecodeLimits {
pub max_bytes: usize,
pub max_modules: u32,
pub max_module_bytes: usize,
pub max_total_module_bytes: usize,
pub max_edges_per_module: u32,
pub max_bindings_per_module: u32,
pub max_exports_per_module: u32,
pub max_total_edges: u32,
pub max_total_bindings: u32,
pub max_total_exports: u32,
pub module: DecodeLimits,
}Expand description
Strict program-level resource ceilings, applied before allocation.
Fields§
§max_bytes: usize§max_modules: u32§max_module_bytes: usize§max_total_module_bytes: usize§max_edges_per_module: u32§max_bindings_per_module: u32§max_exports_per_module: u32§max_total_edges: u32§max_total_bindings: u32§max_total_exports: u32§module: DecodeLimitsTrait Implementations§
Source§impl Clone for ProgramDecodeLimits
impl Clone for ProgramDecodeLimits
Source§fn clone(&self) -> ProgramDecodeLimits
fn clone(&self) -> ProgramDecodeLimits
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 moreSource§impl Debug for ProgramDecodeLimits
impl Debug for ProgramDecodeLimits
Source§impl Default for ProgramDecodeLimits
impl Default for ProgramDecodeLimits
impl Eq for ProgramDecodeLimits
Source§impl PartialEq for ProgramDecodeLimits
impl PartialEq for ProgramDecodeLimits
impl StructuralPartialEq for ProgramDecodeLimits
Auto Trait Implementations§
impl Freeze for ProgramDecodeLimits
impl RefUnwindSafe for ProgramDecodeLimits
impl Send for ProgramDecodeLimits
impl Sync for ProgramDecodeLimits
impl Unpin for ProgramDecodeLimits
impl UnsafeUnpin for ProgramDecodeLimits
impl UnwindSafe for ProgramDecodeLimits
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