attach associated type Time to UdpSocket trait
This commit is contained in:

committed by
Benjamin Fry

parent
578d268f70
commit
025f62640f
@@ -20,6 +20,8 @@ pub struct AsyncStdUdpSocket(async_std::net::UdpSocket);
|
||||
|
||||
#[async_trait]
|
||||
impl UdpSocket for AsyncStdUdpSocket {
|
||||
type Time = AsyncStdTime;
|
||||
|
||||
async fn bind(addr: &SocketAddr) -> io::Result<Self> {
|
||||
async_std::net::UdpSocket::bind(addr)
|
||||
.await
|
||||
|
Reference in New Issue
Block a user