Skip to main content

BackendMaterializeFn

Type Alias BackendMaterializeFn 

Source
pub type BackendMaterializeFn = fn(&mut dyn Any, u64, Vec<u8>) -> Result<Box<dyn SlotValue>, BackendMaterializeError>;
Expand description

Type alias for the BackendRuntime::materialize_from_wire downcast-dispatch fn pointer. Mirrors ProtocolDispatchFn’s erased-Any shape so the per-T closure stays callable from the engine’s wire-decode hot path without re-doing the downcast lookup on every fill.