fizyr_rpc/util/
mod.rs

1//! Utility traits.
2//!
3//! The traits in this module are used to implement utility functions on [`Peer`][crate::Peer] and [`Listener`][crate::Listener].
4//! You do not normally need to use these traits directly.
5//!
6//! However, if you wish to implement a custom transport,
7//! you may also wish to implement these traits.
8
9mod accept;
10mod connect;
11mod into_transport;
12mod select;
13
14pub use accept::{Accept, Bind, Listener};
15pub use connect::Connect;
16pub use into_transport::IntoTransport;
17
18// `select` is not a trait, but it's not exported publicly.
19// So the module documentation is still fine.
20pub(crate) use select::{select, Either};