The Rust Programming Language Forum
How can I mock tokio::io::AsyncReadExt and AsyncWriteExt traits?
help
quinedot
July 16, 2025, 10:05pm
9
That sounds like mocking the executor territory. I'm afraid I'm the wrong person to ask about that.
Is it possible to make mocked AsyncWrite and AsyncRead behavior use tokio::time::sleep() and other async functions?
show post in topic
Related topics
Topic
Replies
Views
Activity
Is it possible to make mocked AsyncWrite and AsyncRead behavior use tokio::time::sleep() and other async functions?
help
3
252
July 18, 2025
Unable to find implemented trait
help
1
1809
November 19, 2019
Trait that is trivially implemented isn't?
help
6
874
March 21, 2020
How to write test async functions without using trait objects
help
4
703
February 2, 2024
Fail to implement `AsyncWrite` on a struct which should implement it
help
9
1111
September 25, 2022