pub struct AdapterOptions {
pub instance: RuntimeComponentInstanceIndex,
pub string_encoding: StringEncoding,
pub callback: Option<CoreDef>,
pub post_return: Option<CoreDef>,
pub async_: bool,
pub core_type: ModuleInternedTypeIndex,
pub data_model: DataModel,
}
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.
callback: Option<CoreDef>
The async callback function used by these options, if specified.
post_return: Option<CoreDef>
An optional definition of a post-return
to use.
async_: bool
Whether to use the async ABI for lifting or lowering.
core_type: ModuleInternedTypeIndex
The core function type that is being lifted from / lowered to.
data_model: DataModel
The data model used by this adapter: linear memory or GC objects.
Trait Implementations§
Source§impl Clone for AdapterOptions
impl Clone for AdapterOptions
Source§fn clone(&self) -> AdapterOptions
fn clone(&self) -> AdapterOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.