[−][src]Type Definition lib3h_zombie_actor::prelude::GhostCallback
type GhostCallback<UserData, CbData, E> = Box<dyn FnOnce(&mut UserData, GhostCallbackData<CbData, E>) -> GhostResult<()> + 'static>;
definition for a ghost request callback
note, the callback can be registered as 'static
because the code
definition itself doesn't depend on any specific instance lifetime
if you want to mutate the state of a struct instance, pass it in
with the handle
or process
call.
(see detach crate for help with self refs)