You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: future cannot be sent between threads safely
--> src\main.rs:21:5
|
21 | / tokio::spawn(async move {
22 | | let _ = ping(destination, 1).await;
23 | | });
| |______^ future created by async block is not `Send`
error[E0277]: `NonNull<Arc<std::sync::Mutex<ping_async::platform::windows::ReplyContext>>>` cannot be shared between threads safely
--> src\main.rs:21:5
|
21 | / tokio::spawn(async move {
22 | | let _ = ping(destination, 1).await;
23 | | });
| |______^ `NonNull<Arc<std::sync::Mutex<ping_async::platform::windows::ReplyContext>>>` cannot be shared between threads safely
|
= help: within `IcmpEchoRequestor`, the trait `Sync` is not implemented for `NonNull<Arc<std::sync::Mutex<ping_async::platform::windows::ReplyContext>>>`, which is required by `{async block@src\main.rs:21:18: 23:6}: std::marker::Send`
note: required because it appears within the type `IcmpEchoRequestor`
The text was updated successfully, but these errors were encountered:
Error with:
The text was updated successfully, but these errors were encountered: