Crate test_diagnostics

source ·
Expand description

This crate provides helper functions to collect test diagnostics.


Future that executes a function when bytes are available on a socket.
A writer that buffers content in memory for some duration before flushing the contents to an inner writer. After the duration elapses, any new bytes are written immediately to the inner writer. Calling flush() also immediately flushes the contents. Errors that occur when flushing on timeout are returned at the next write() or flush() call. Therefore, callers should make sure to call flush before the StdoutBuffer goes out of scope.