pub enum Import {
Show 14 variants
CoreDef(CoreDef),
Transcode {
op: Transcode,
from: CoreDef,
from64: bool,
to: CoreDef,
to64: bool,
},
ResourceTransferOwn,
ResourceTransferBorrow,
ResourceEnterCall,
ResourceExitCall,
PrepareCall {
memory: Option<CoreDef>,
},
SyncStartCall {
callback: Option<CoreDef>,
},
AsyncStartCall {
callback: Option<CoreDef>,
post_return: Option<CoreDef>,
},
FutureTransfer,
StreamTransfer,
ErrorContextTransfer,
CheckBlocking,
Trap,
}Expand description
Possible imports into an adapter module.
Variants§
CoreDef(CoreDef)
A definition required in the configuration of an Adapter.
Transcode
A transcoding function from the host to convert between string encodings.
Fields
ResourceTransferOwn
Transfers an owned resource from one table to another.
ResourceTransferBorrow
Transfers a borrowed resource from one table to another.
ResourceEnterCall
Sets up entry metadata for a borrow resources when a call starts.
ResourceExitCall
Tears down a previous entry and handles checking borrow-related metadata.
PrepareCall
An intrinsic used by FACT-generated modules to begin a call involving an async-lowered import and/or an async-lifted export.
Fields
SyncStartCall
An intrinsic used by FACT-generated modules to complete a call involving a sync-lowered import and async-lifted export.
AsyncStartCall
An intrinsic used by FACT-generated modules to complete a call involving an async-lowered import function.
Fields
FutureTransfer
An intrinisic used by FACT-generated modules to (partially or entirely) transfer
ownership of a future.
StreamTransfer
An intrinisic used by FACT-generated modules to (partially or entirely) transfer
ownership of a stream.
ErrorContextTransfer
An intrinisic used by FACT-generated modules to (partially or entirely) transfer
ownership of an error-context.
CheckBlocking
An intrinsic used by FACT-generated modules to check whether an async-typed function may be called via a sync lower.
Trap
An intrinsic for trapping the instance with a specific trap code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Import
impl RefUnwindSafe for Import
impl Send for Import
impl Sync for Import
impl Unpin for Import
impl UnwindSafe for Import
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)