pub async fn packet_socket( provider: &ProviderProxy, kind: Kind, ) -> Result<Result<Socket, Error>, Error>
Creates a packet socket using the given provider.