[][src]Trait net2::unix::UnixTcpBuilderExt

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

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

Required Methods

Set value for the SO_REUSEPORT option on this socket.

This indicates that futher 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.

Check the value of the SO_REUSEPORT option on this socket.

Implementors

impl UnixTcpBuilderExt for TcpBuilder
[src]