pub use s2n_quic_platform::io::xdp::*;
impl<Rx, Tx> super::Provider for Provider<Rx, Tx>
where
Rx: 'static + s2n_quic_core::io::rx::Rx<PathHandle = PathHandle> + Send,
Tx: 'static + s2n_quic_core::io::tx::Tx<PathHandle = PathHandle> + Send,
{
type PathHandle = PathHandle;
type Error = std::io::Error;
fn start<E: s2n_quic_core::endpoint::Endpoint<PathHandle = Self::PathHandle>>(
self,
endpoint: E,
) -> Result<s2n_quic_core::inet::SocketAddress, Self::Error> {
let (_join_handle, local_addr) = Provider::start(self, endpoint)?;
Ok(local_addr)
}
}