quinn-rs / quinn

Async-friendly QUIC implementation in Rust
Apache License 2.0
3.76k stars 380 forks source link

Expose more `quinn-udp` UdpState properties #1609

Closed Icelk closed 1 year ago

Icelk commented 1 year ago

In the implementation of quinn-udp (I'm focusing on UNIX/Linux), the following properties/methods on UdpState are used:

They are ~required~ recommended when implementing one's own AsyncUdpSocket. Exposing them would enable more correct external implementations.

I can make a PR if you'd like :)

djc commented 1 year ago

What's your use case?

Icelk commented 1 year ago

Implementing AsyncUdpSocket for tokio-uring.

djc commented 1 year ago

Makes sense, happy to take a look at a PR!