Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try_clone not implemented on UdpSocket #1095

Open
juerkkil opened this issue Sep 18, 2024 · 0 comments
Open

try_clone not implemented on UdpSocket #1095

juerkkil opened this issue Sep 18, 2024 · 0 comments

Comments

@juerkkil
Copy link

Noticed that async_std::net::UdpSocket does not implement try_clone() function, which is implemented in standard lib.

Tested out briefly on a local env and it seems to me that something like this would do the trick:

    pub fn try_clone(&self) -> UdpSocket {
        UdpSocket::from(self.watcher.get_ref().try_clone().expect("oops"))
    }

Is it a good idea to craft a PR, or is there some particular reason why this is not implemented?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant