Fixing #26. This works in my example app, and it seems like 'static is right for the "normal" way to use Persistent, but I'm not sure if something else could work and not impose the limitation that the val be valid for the lifetime of the process.
D should probably be bounded with Send as it has to go behind an RWLock/Mutex/Arc. That being said, this does fix the issue and the Send bound is implied anyway.
Fixing #26. This works in my example app, and it seems like
'static
is right for the "normal" way to use Persistent, but I'm not sure if something else could work and not impose the limitation that the val be valid for the lifetime of the process.