Questions tagged [rust-async-std]

Async version of the Rust standard library.

async-std is a foundation of portable Rust software, a set of minimal and battle-tested shared abstractions for the broader Rust ecosystem. It offers std types, like Future and Stream, library-defined operations on language primitives, standard macros, I/O and multithreading, among many other things.

async-std is available from crates.io. Once included, async-std can be accessed in use statements through the path async_std, as in use async_std::future.

48 questions
0
votes
1 answer

async_std 1.8 has unresolved imports for items in `async_std::channel`

I'm building an application using async_std but this returns an unresolved import error: use async_std::sync::Sender; After looking at the documentation for 1.8.0, it seems like async_std::sync has been deprecated in favor of async_std::channel.…
lblenner
  • 372
  • 2
  • 14
0
votes
1 answer

read in chunks with async-std

I'm trying to implement something similar to reading a file in Java with AsynchronousByteChannel like AsynchronousFileChannel channel = AsynchronousFileChannel.open(path... channel.read(buffer,... new CompletionHandler()…
user656449
  • 2,950
  • 2
  • 30
  • 43
-3
votes
1 answer

Connection reset by peer. Tokio, select

I am writing socks5 proxy server. The program is running asynchronously and I am trying to use tokio::select, but the program terminates due to this error when I want to get the size of the received data: thread 'tokio-runtime-worker' panicked at…
1 2 3
4