timeout_io

Crates.iotimeout_io
lib.rstimeout_io
version0.6.0
sourcesrc
created_at2018-08-17 00:25:46.344021
updated_at2019-08-13 15:05:20.150278
descriptionThis library provides a simple timeout-based API for IO-operations
homepage
repositoryhttps://github.com/KizzyCode/timeout_io
max_upload_size
id79862
size1,089,054
Keziah Biermann (KizzyCode)

documentation

README

docs.rs License BSD-2-Clause License MIT crates.io Download numbers Travis CI AppVeyor CI dependency status

About

This library provides a simple timeout-based API for IO-operations.

It provides the following features:

  • DNS-resolution (currently uses a background-thread)
  • TCP-accept
  • TCP-read/read-until/write
  • StdIOE-read/read-until/write
  • UDP-receive/send
  • A select-like API to wait on multiple source simultaneously

All functions are defined as traits, so that you can easily wrap your own IO-channels without breaking compatibility.

Note: We currently do not provide a function for timeout-based connect-calls; use std::net::TcpStream::connect_timeout for TCP-connections or build sth. using io::libselect (and feel free to commit if you do so 😇)

Commit count: 49

cargo fmt