pub struct VeneerImport<'a> { /* private fields */ }Expand description
One veneered typed call: the resident veneer, the module that owns the export and the export’s byte offset in that module’s image.
Implementations§
Source§impl<'a> VeneerImport<'a>
impl<'a> VeneerImport<'a>
Sourcepub unsafe fn new(
veneer: &'a mut PackedVeneer,
address: u32,
module: Handle,
offset: u32,
) -> Self
pub unsafe fn new( veneer: &'a mut PackedVeneer, address: u32, module: Handle, offset: u32, ) -> Self
Bind only a veneer the final-link packer published for the packaged Rust
entry at offset; its call site’s typed caller and callee must share their
exact ABI/types, as for StaticImport.
§Safety
veneer must be the actual resident record at address, and no other CPU or
DMA user may write it while the import exists.