Replies: 1 comment
-
oh maybe it's ok like this. |
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
-
I am new in Rust,
I want to build a http proxy . pass request and response throw server and client.
But the code report an Error
future cannot be sent between threads safely
within
[async block@src/csip/http_client.rs:113:22: 131:10]
, the traitSend
is not implemented forstd::sync::MutexGuard<'_, hyper::client::conn::http1::SendRequest<http_body_util::Full<bytes::Bytes>>>
rustcClick for full compiler diagnostichttp_client.rs(129, 51): future is not
Send
as this value is used across an awaitspawn.rs(166, 21): required by a bound in
tokio::spawn
And a Service struct fn call return a Send Future.
Beta Was this translation helpful? Give feedback.
All reactions