exercism-solutions/rust/paasio/README.md

47 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2023-12-18 19:11:37 -06:00
# PaaS I/O
Welcome to PaaS I/O on Exercism's Rust Track.
If you need help running the tests or submitting your code, check out `HELP.md`.
## Instructions
Report network IO statistics.
You are writing a [PaaS][paas], and you need a way to bill customers based on network and filesystem usage.
Create a wrapper for network connections and files that can report IO statistics.
The wrapper must report:
- The total number of bytes read/written.
- The total number of read/write operations.
[paas]: https://en.wikipedia.org/wiki/Platform_as_a_service
Network and file operations are implemented in terms of the [`io::Read`][read] and [`io::Write`][write] traits. It will therefore be necessary to implement those traits for your types.
[read]: https://doc.rust-lang.org/std/io/trait.Read.html
[write]: https://doc.rust-lang.org/std/io/trait.Write.html
## Source
### Created by
- @coriolinus
### Contributed to by
- @ccouzens
- @ClashTheBunny
- @cwhakes
- @efx
- @ErikSchierboom
- @petertseng
- @rofrol
- @shenek
- @stringparser
- @TheDarkula
- @ZapAnton
### Based on
Brian Matsuo - https://github.com/bmatsuo