Replies: 1 comment 4 replies
-
Could you show a bit of code to clarify what you would like to do? Lifetimes of |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to have a resource that hands out another resource bound by the lifetime of the first resource? It seems I can't work with lifetimes at all when defining resources.
In my specific usecase I'm trying to return an iterator (a resource) from a RocksDB instance (a resource), and the lifetime of the iterator is tied to the lifetime of the RocksDB instance.
Beta Was this translation helpful? Give feedback.
All reactions