Is it possible to call TIA :) |
Answered by
90-008
Aug 26, 2021
Replies: 1 comment 3 replies
|
Your |
3 replies
Answer selected by
hecrj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your
get_data_asyncmethod borrows some data fromself, andCommands require'staticlifetime, butselfis not'static, so Rust complains. You shouldClone(.clone()) whatever data you need to perform the async code inget_data_async, so that nothing is borrowed fromself.