For some of the container formats I've handled, images included, I've found it convenient to split an initial metadata parse that gives you a read-only, shared source, from readers that share said source - though there's still a lot of room to play in that area.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to copy Read trait? | 4 | 701 | February 14, 2022 | |
| Automatic clones in async code | 6 | 303 | December 15, 2025 | |
| Usage of self.clone() in async fn and alternatives | 2 | 1781 | March 25, 2020 | |
| Copy Reader/Writer to/from TcpStream | 6 | 1142 | December 30, 2022 | |
| Problem with "duplicating" a (Tcp)Stream and lifetimes | 12 | 2877 | August 17, 2021 |