stubborn-io
This crate provides io traits/structs that automatically recover from potential disconnections/interruptions.
To use with your project, add the following to your Cargo.toml:
= "0.2"
API Documentation, examples and motivations can be found here - https://docs.rs/stubborn-io .
Note: This crate requires at least version 1.39 of the Rust compiler.
Usage Example
In this example, we will see a drop in replacement for tokio's TcpStream, with the distinction that it will automatically attempt to reconnect in the face of connectivity failures.
use StubbornTcpStream;
use AsyncWriteExt;
let addr = "localhost:8080";
async ;