pub struct WasmStrictMode {
pub require_code_execution: bool,
pub fail_on_console_error: bool,
pub verify_custom_elements: bool,
pub test_both_threading_modes: bool,
pub simulate_low_memory: bool,
pub verify_coop_coep_headers: bool,
pub validate_replay_hash: bool,
pub max_console_warnings: u32,
pub require_cache_hits: bool,
pub max_wasm_size: Option<usize>,
pub require_panic_free: bool,
}Expand description
Strict mode configuration for WASM testing
Fields§
§require_code_execution: boolRequire actual code execution, not just DOM presence
fail_on_console_error: boolFail test on any console.error
verify_custom_elements: boolVerify Web Components registration
test_both_threading_modes: boolTest both threaded and sequential modes
simulate_low_memory: boolSimulate low memory conditions
verify_coop_coep_headers: boolVerify COOP/COEP headers
validate_replay_hash: boolValidate deterministic replay hashes
max_console_warnings: u32Maximum allowed console warnings
require_cache_hits: boolRequire service worker cache hits
max_wasm_size: Option<usize>Maximum WASM binary size in bytes
require_panic_free: boolRequire panic-free paths (no unwrap in WASM)
Implementations§
Source§impl WasmStrictMode
impl WasmStrictMode
Sourcepub fn production() -> Self
pub fn production() -> Self
Production-grade strictness (all checks enabled)
Sourcepub fn development() -> Self
pub fn development() -> Self
Development-friendly (more permissive)
Trait Implementations§
Source§impl Clone for WasmStrictMode
impl Clone for WasmStrictMode
Source§fn clone(&self) -> WasmStrictMode
fn clone(&self) -> WasmStrictMode
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 Debug for WasmStrictMode
impl Debug for WasmStrictMode
Auto Trait Implementations§
impl Freeze for WasmStrictMode
impl RefUnwindSafe for WasmStrictMode
impl Send for WasmStrictMode
impl Sync for WasmStrictMode
impl Unpin for WasmStrictMode
impl UnsafeUnpin for WasmStrictMode
impl UnwindSafe for WasmStrictMode
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().