pub struct CanonicalOptions {
pub instance: RuntimeComponentInstanceIndex,
pub string_encoding: StringEncoding,
pub callback: Option<RuntimeCallbackIndex>,
pub post_return: Option<RuntimePostReturnIndex>,
pub async_: bool,
pub core_type: ModuleInternedTypeIndex,
pub data_model: CanonicalOptionsDataModel,
}
Expand description
Canonical ABI options associated with a lifted or lowered function.
Fields§
§instance: RuntimeComponentInstanceIndex
The component instance that this bundle was associated with.
string_encoding: StringEncoding
The encoding used for strings.
callback: Option<RuntimeCallbackIndex>
The async callback function used by these options, if specified.
post_return: Option<RuntimePostReturnIndex>
The post-return function used by these options, if specified.
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: CanonicalOptionsDataModel
The data model (GC objects or linear memory) used with these canonical options.
Trait Implementations§
Source§impl Clone for CanonicalOptions
impl Clone for CanonicalOptions
Source§fn clone(&self) -> CanonicalOptions
fn clone(&self) -> CanonicalOptions
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 CanonicalOptions
impl Debug for CanonicalOptions
Source§impl<'de> Deserialize<'de> for CanonicalOptions
impl<'de> Deserialize<'de> for CanonicalOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CanonicalOptions
impl RefUnwindSafe for CanonicalOptions
impl Send for CanonicalOptions
impl Sync for CanonicalOptions
impl Unpin for CanonicalOptions
impl UnwindSafe for CanonicalOptions
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