PaaS I/O

PaaS I/O

Medium

Instructions

Report network IO statistics.

You are writing a 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.

Network and file operations are implemented in terms of the io::Read and io::Write traits. It will therefore be necessary to implement those traits for your types.


Source

Brian MatsuoThe link opens in a new window or tab
Last updated 1 February 2023
Edit via GitHub The link opens in a new window or tab
Rust Exercism

Ready to start PaaS I/O?

Sign up to Exercism to learn and master Rust with 13 concepts, 103 exercises, and real human mentoring, all for free.