lafere 0.1.0

A more or less simple communication protocol library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod timeout;
pub(crate) mod watch;
#[macro_use]
pub mod bg_task;
mod listener;
pub mod testing;

pub(crate) use timeout::TimeoutReader;
pub use crate::standalone_util::*;
pub use listener::{SocketAddr, Listener, ListenerExt};

use tokio::io::{AsyncRead, AsyncWrite};

/// A trait to simplify using all tokio io traits.
pub trait ByteStream: AsyncRead + AsyncWrite + Send + Unpin + 'static {}
impl<T> ByteStream for T
where T: AsyncRead + AsyncWrite + Send + Unpin + 'static {}