Change recv and recv_from to use ReadBuf on UdpSocket and UnixDatagram #2988
Labels
A-tokio
Area: The main tokio crate
C-enhancement
Category: A PR with an enhancement or bugfix.
M-net
Module: tokio/net
Milestone
These methods on
UdpSocket
andUnixDatagram
currently take a&mut [u8]
, but should be changed to take aReadBuf
.This is a breaking change, and should be done as part of the transition to 1.0.
The text was updated successfully, but these errors were encountered: