pub enum CanonOpt<'a> {
StringUtf8,
StringUtf16,
StringLatin1Utf16,
Memory(CoreItemRef<'a, memory>),
Realloc(CoreItemRef<'a, func>),
PostReturn(CoreItemRef<'a, func>),
Async,
Callback(CoreItemRef<'a, func>),
CoreType(CoreItemRef<'a, type>),
Gc,
}Available on crate feature
component-model only.Expand description
Canonical ABI options.
Variants§
StringUtf8
Encode strings as UTF-8.
StringUtf16
Encode strings as UTF-16.
StringLatin1Utf16
Encode strings as “compact UTF-16”.
Memory(CoreItemRef<'a, memory>)
Use the specified memory for canonical ABI memory access.
Realloc(CoreItemRef<'a, func>)
Use the specified reallocation function for memory allocations.
PostReturn(CoreItemRef<'a, func>)
Call the specified function after the lifted function has returned.
Async
Use the async ABI for lifting or lowering.
Callback(CoreItemRef<'a, func>)
Use the specified function to deliver async events to stackless coroutines.
CoreType(CoreItemRef<'a, type>)
Lower this component function into the specified core function type.
Gc
Use the GC variant of the canonical ABI.
Trait Implementations§
Source§impl From<&CanonOpt<'_>> for CanonicalOption
impl From<&CanonOpt<'_>> for CanonicalOption
Auto Trait Implementations§
impl<'a> Freeze for CanonOpt<'a>
impl<'a> RefUnwindSafe for CanonOpt<'a>
impl<'a> Send for CanonOpt<'a>
impl<'a> Sync for CanonOpt<'a>
impl<'a> Unpin for CanonOpt<'a>
impl<'a> UnsafeUnpin for CanonOpt<'a>
impl<'a> UnwindSafe for CanonOpt<'a>
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