Closed XOR-op closed 1 year ago
Seems okay. Maybe we should expose these as part of a public udp
module?
Do you mean we should export the whole udp
module? That is a good idea since they are all helpful when implementing a custom AsyncUdpSocket
, and in fact, there are only 4 structs + 1 constant.
I'd prefer not to use a *
import, but feel free to export all the items that are useful to you.
I finally re-export quinn-udp
as a submodule of quinn, which does not mess up the root namespace.
To implement
AsyncUdpSocket
Trait fromquinn
crate, we must use the typesRecvMeta
andUdpState
. However, current version of quinn does not re-export them, so anyone who wants to implement the trait needs importing anotherquinn-udp
crate. This PR fixes this problem by re-export them inquinn
crate.