pub struct OwnedModuleData { /* private fields */ }
Expand description
The metadata (and some data) for a Lucet module.
This is a version of ModuleData
with owned types throughout,
rather than references to support zero-copy deserialization. This type is useful when directly
building up a value to be serialized.
Implementations§
Source§impl OwnedModuleData
impl OwnedModuleData
pub fn new( linear_memory: Option<OwnedLinearMemorySpec>, globals_spec: Vec<OwnedGlobalSpec>, function_info: Vec<OwnedFunctionMetadata>, imports: Vec<OwnedImportFunction>, exports: Vec<OwnedExportFunction>, signatures: Vec<Signature>, ) -> Self
Sourcepub fn to_ref<'a>(&'a self) -> ModuleData<'a>
pub fn to_ref<'a>(&'a self) -> ModuleData<'a>
Create a ModuleData
backed by the values in this
OwnedModuleData
.
pub fn empty() -> Self
pub fn with_heap_spec(self, heap_spec: HeapSpec) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OwnedModuleData
impl RefUnwindSafe for OwnedModuleData
impl Send for OwnedModuleData
impl Sync for OwnedModuleData
impl Unpin for OwnedModuleData
impl UnwindSafe for OwnedModuleData
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