msrt-std
Blocking std byte-stream adapters for MSRT.
This crate is for host-side Rust programs that already own a byte stream:
- serial ports
- TCP streams
- pipes
- test doubles implementing
Read + Write
The first version provides:
StdFrontend<T>: active client/frontend endpointStdBackend<T>: passive single-peer backend endpoint
T only needs to implement std::io::Read + std::io::Write.
Basic Frontend
use ;
#
Use nonblocking IO when calling receive_available or tick; WouldBlock is
treated as "no input right now".