Skip to main content

PupEntry

Type Alias PupEntry 

Source
pub type PupEntry = fn(Packed, Packed, Vec<Packed>) -> Result<Packed, PackedError>;
Expand description

The signature of the generated trampoline a pup runs: build a fresh world from the globals snapshot, unpack the callee and its arguments, run the call, and pack the result (or the error) for the trip home. A plain fn pointer, so it is Send and can be handed to a spawned thread.