Skip to main content

protwrap/
tokio.rs

1//! Utility functions specific to tokio.
2
3pub mod client;
4pub mod server;
5
6pub use client::Stream as ClientStream;
7pub use server::Stream as ServerStream;
8
9/// Unified type covering both [`ServerStream`] and [`ClientStream`] types.
10pub type Stream = tokio_util::either::Either<ServerStream, ClientStream>;
11
12// vim: set ft=rust et sw=2 ts=2 sts=2 cinoptions=2 tw=79 :