Skip to content

Is it possible to store to a NIF's rustler::Env instance in a struct that is a encoded/decoded using the NifStruct macro? #582

Answered by filmor
aram0112 asked this question in Q&A
Discussion options

You must be logged in to vote

You can't use an Env directly (without being constrained to the same "call"), but you can use an OwnedEnv instead.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@aram0112
Comment options

@filmor
Comment options

@aram0112
Comment options

@filmor
Comment options

@aram0112
Comment options

Answer selected by aram0112
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants