Sha256: e5d8428c1c353cd8fbb83c46cc08804b1615e48593933ee6d1060cca0f728dc7
Contents?: true
Size: 1012 Bytes
Versions: 2
Compression:
Stored size: 1012 Bytes
Contents
//! Small shims for CoW support when virtual memory is disabled, meaning that //! none of the types in this module are supported. #![warn(dead_code, unused_imports)] use crate::prelude::*; use crate::runtime::vm::MmapVec; use alloc::sync::Arc; use wasmtime_environ::{DefinedMemoryIndex, Module}; pub enum ModuleMemoryImages {} impl ModuleMemoryImages { pub fn get_memory_image( &self, _defined_index: DefinedMemoryIndex, ) -> Option<&Arc<MemoryImage>> { None } } #[derive(Debug, PartialEq)] pub enum MemoryImage {} impl ModuleMemoryImages { pub fn new( _module: &Module, _wasm_data: &[u8], _mmap: Option<&MmapVec>, ) -> Result<Option<ModuleMemoryImages>> { Ok(None) } } #[derive(Debug)] pub enum MemoryImageSlot {} impl MemoryImageSlot { pub(crate) fn set_heap_limit(&mut self, _size_bytes: usize) -> Result<()> { match *self {} } pub(crate) fn has_image(&self) -> bool { match *self {} } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wasmtime-29.0.0 | ./ext/cargo-vendor/wasmtime-29.0.0/src/runtime/vm/cow_disabled.rs |
wasmtime-28.0.0 | ./ext/cargo-vendor/wasmtime-28.0.0/src/runtime/vm/cow_disabled.rs |