protwrap 0.4.3

Thin protocol wrapper for network applications.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Utility functions specific to tokio.

pub mod client;
pub mod server;

pub use client::Stream as ClientStream;
pub use server::Stream as ServerStream;

/// Unified type covering both [`ServerStream`] and [`ClientStream`] types.
pub type Stream = tokio_util::either::Either<ServerStream, ClientStream>;

// vim: set ft=rust et sw=2 ts=2 sts=2 cinoptions=2 tw=79 :