Struct wasmtime_environ::component::AdapterOptions
source · pub struct AdapterOptions {
pub instance: RuntimeComponentInstanceIndex,
pub string_encoding: StringEncoding,
pub memory: Option<CoreExport<MemoryIndex>>,
pub memory64: bool,
pub realloc: Option<CoreDef>,
pub post_return: Option<CoreDef>,
}
Expand description
Configuration options which can be specified as part of the canonical ABI in the component model.
Fields§
§instance: RuntimeComponentInstanceIndex
The Wasmtime-assigned component instance index where the options were originally specified.
string_encoding: StringEncoding
How strings are encoded.
memory: Option<CoreExport<MemoryIndex>>
An optional memory definition supplied.
memory64: bool
If memory
is specified, whether it’s a 64-bit memory.
realloc: Option<CoreDef>
An optional definition of realloc
to used.
post_return: Option<CoreDef>
An optional definition of a post-return
to use.
Trait Implementations§
source§impl Clone for AdapterOptions
impl Clone for AdapterOptions
source§fn clone(&self) -> AdapterOptions
fn clone(&self) -> AdapterOptions
Returns a copy 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 AdapterOptions
impl Debug for AdapterOptions
source§impl Hash for AdapterOptions
impl Hash for AdapterOptions
source§impl PartialEq for AdapterOptions
impl PartialEq for AdapterOptions
impl Eq for AdapterOptions
impl StructuralPartialEq for AdapterOptions
Auto Trait Implementations§
impl Freeze for AdapterOptions
impl RefUnwindSafe for AdapterOptions
impl Send for AdapterOptions
impl Sync for AdapterOptions
impl Unpin for AdapterOptions
impl UnwindSafe for AdapterOptions
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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.