Trait net2::unix::UnixUdpBuilderExt [−][src]
pub trait UnixUdpBuilderExt {
fn reuse_port(&self, reuse: bool) -> Result<&Self>;
fn get_reuse_port(&self) -> Result<bool>;
}
Expand description
Unix-specific extensions for the UdpBuilder
type in this library.
Required methods
fn reuse_port(&self, reuse: bool) -> Result<&Self>
fn reuse_port(&self, reuse: bool) -> Result<&Self>
Set value for the SO_REUSEPORT
option on this socket.
This indicates that further calls to bind
may allow reuse of local
addresses. For IPv4 sockets this means that a socket may bind even when
there’s a socket already listening on this port.
fn get_reuse_port(&self) -> Result<bool>
fn get_reuse_port(&self) -> Result<bool>
Check the value of the SO_REUSEPORT
option on this socket.