librqbit_dualstack_sockets/
lib.rs

1#[cfg(test)]
2mod tests;
3
4mod error;
5pub use error::{Error, Result};
6
7use crate::socket::MaybeDualstackSocket;
8
9pub mod addr;
10pub mod socket;
11
12pub type TcpListener = MaybeDualstackSocket<tokio::net::TcpListener>;
13pub type UdpSocket = MaybeDualstackSocket<tokio::net::UdpSocket>;
14
15#[cfg(feature = "axum")]
16pub use socket::axum::WrappedSocketAddr;