pub enum Import {
CoreDef(CoreDef),
Transcode {
op: Transcode,
from: CoreDef,
from64: bool,
to: CoreDef,
to64: bool,
},
ResourceTransferOwn,
ResourceTransferBorrow,
ResourceEnterCall,
ResourceExitCall,
AsyncEnterCall,
AsyncExitCall {
callback: Option<CoreDef>,
post_return: Option<CoreDef>,
},
FutureTransfer,
StreamTransfer,
ErrorContextTransfer,
}
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.
AsyncEnterCall
An intrinsic used by FACT-generated modules to begin a call to an async-lowered import function.
AsyncExitCall
An intrinsic used by FACT-generated modules to complete a call to 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
.