Module stubborn_io::tokio

source ·
Expand description

Provides functionality related to asynchronous IO, including concrete ready to use structs such as StubbornTcpStream as well as the UnderlyingIO trait and StubbornIO struct needed to create custom stubborn io types yourself.

Structs§

  • The StubbornIo is a wrapper over a tokio AsyncRead/AsyncWrite item that will automatically invoke the UnderlyingIo::establish upon initialization and when a reconnect is needed. Because it implements deref, you are able to invoke all of the original methods on the wrapped IO.

Traits§

Type Aliases§

  • A drop in replacement for tokio’s TcpStream, with the distinction that it will automatically attempt to reconnect in the face of connectivity failures.