It looks like the UdpSocket type only provides a way to set SO_BROADCAST... that said, you could always use OS-specific APIs to do the same thing (e.g. on Linux, use the AsRawFd impl to get the socket's file descriptor then call nix::sys::socket::setsockopt() to set the ReuseAddr option).