[][src]Trait net2::unix::UnixUdpBuilderExt

pub trait UnixUdpBuilderExt {
    pub fn reuse_port(&self, reuse: bool) -> Result<&Self>;
pub fn get_reuse_port(&self) -> Result<bool>; }

Unix-specific extensions for the UdpBuilder type in this library.

Required methods

pub fn reuse_port(&self, reuse: bool) -> Result<&Self>[src]

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.

pub fn get_reuse_port(&self) -> Result<bool>[src]

Check the value of the SO_REUSEPORT option on this socket.

Loading content...

Implementors

impl UnixUdpBuilderExt for UdpBuilder[src]

Loading content...