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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.