[−][src]Crate nyx
Provides functionality for finding the throughput of iterators, readers, and writers.
Examples
Add this to Cargo.toml
:
[dependencies]
nyx = "0.6"
And this to main.rs
:
use std::io; fn main() { let mut repeat = nyx::stdout(io::repeat(0)); io::copy(&mut repeat, &mut io::sink()).unwrap(); }
This will write the amount of bytes copied per second to stdout
in one second intervals.
28.06 GiB/s
29.34 GiB/s
30.06 GiB/s
29.33 GiB/s
Structs
Bps | Bytes per second with expected formatting. |
Send | A wrapper that yields the bytes by sending it through the provided sender. |
Slot | A wrapper that yields the bytes by calling the provided function. |
Stderr | A wrapper that yields the bytes by printing it to |
Stdout | A wrapper that yields the bytes by printing it to |
Functions
send | Creates a wrapper that yields the bytes by sending it through the provided sender. |
slot | Creates a wrapper that yields the bytes by calling the provided function. |
stderr | Creates a wrapper that yields the bytes by printing it to |
stdout | Creates a wrapper that yields the bytes by printing it to |