Wrapping the std socket with either TokioRuntime or AsyncStdRuntime returns Box<dyn AsyncUdpSocket>. Creating an endpoint with an abstract socket requires impl AsyncUdpSocket and it is therefore not possible to use a wrapped socket together with new_with_abstract_socket.
This MR fixes this inconsistency by using Box<dyn AsyncUdpSocket> in new_with_abstract_socket.
Wrapping the std socket with either
TokioRuntime
orAsyncStdRuntime
returnsBox<dyn AsyncUdpSocket>
. Creating an endpoint with an abstract socket requiresimpl AsyncUdpSocket
and it is therefore not possible to use a wrapped socket together withnew_with_abstract_socket
.This MR fixes this inconsistency by using
Box<dyn AsyncUdpSocket>
innew_with_abstract_socket
.