How can I use the MaybeSend
type?
#429
Unanswered
shanebishop
asked this question in
Q&A
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 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.
-
I want to wrap calls to
mlua::Lua::create_function
so that I can have generic error handling for creation of different functions.Here is what I tried:
However, I get this error:
When I try adding
use mlua::types::MaybeSend;
, I get this error:Is it possible for me to use the
MaybeSend
type? Or do I have no choice but to duplicate my error handling code for every call I make tomlua::Lua::create_function
?Beta Was this translation helpful? Give feedback.
All reactions