mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-30 00:00:16 +02:00
* udp: add `into_parts` to `RecvDgram` If `RecvDgram` can not be driven to completion it may become necessary to get back the `UdpSocket` it contains which is currently not possible. This adds`into_parts` to get the socket as well as the buffer back. Both methods consume `RecvDgram`. Note that after the future has completed, `into_parts` must not be used, or else a panic will happen.