We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Box::pin(fut) | ^^^^^^^^^^^^^ dyn Future<Output = std::result::Result<Vec<MySqlRow>, sqlx::Error>> + std::marker::Send cannot be shared between threads safely
dyn Future<Output = std::result::Result<Vec<MySqlRow>, sqlx::Error>> + std::marker::Send
How can I fixed it?
The text was updated successfully, but these errors were encountered:
Hi @moqle,
Thankyou for trying out the domain crate, especially the unstable Zone feature and the MySQL example!
domain
Zone
https://docs.rs/domain/latest/domain/zonetree/trait.ReadableZone.html#method.query_async shows that the function signature includes both Send and Sync:
Send
Sync
fn query_async( &self, qname: Name<Bytes>, qtype: Rtype, ) -> Pin<Box<dyn Future<Output = Result<Answer, OutOfZone>> + Send + Sync>>
Your code fragment lacks the Sync bound. Perhaps you need to add it?
Ximon
Sorry, something went wrong.
thanks! I'll try it
No branches or pull requests
Box::pin(fut)
| ^^^^^^^^^^^^^
dyn Future<Output = std::result::Result<Vec<MySqlRow>, sqlx::Error>> + std::marker::Send
cannot be shared between threads safelyHow can I fixed it?
The text was updated successfully, but these errors were encountered: