lightyear_transport/channel/mod.rs
1/*! Channels are used to add reliability/ordering on top of the transport layer
2*/
3
4pub use crate::channel::registry::ChannelKind;
5
6pub mod builder;
7pub mod receivers;
8pub mod senders;
9
10pub mod registry;
11#[cfg(feature = "trace")]
12pub mod stats;
13
14/// A Channel is used to specify some properties of how the bytes are sent over the network.
15///
16/// The properties can be specified using the [`ChannelSettings`](crate::prelude::ChannelSettings).
17pub trait Channel: Send + Sync + 'static {}
18impl<T: Send + Sync + 'static> Channel for T {}