change interface

This commit is contained in:
XOR-op
2023-01-22 00:48:51 +08:00
committed by Benjamin Fry
parent c7550e1efc
commit 2d94faf1ba
5 changed files with 35 additions and 14 deletions

View File

@@ -90,6 +90,7 @@ impl RuntimeProvider for AsyncStdRuntimeProvider {
fn bind_udp(
&self,
local_addr: SocketAddr,
_server_addr: SocketAddr,
) -> Pin<Box<dyn Send + Future<Output = std::io::Result<Self::Udp>>>> {
Box::pin(AsyncStdUdpSocket::bind(local_addr))
}