Skip to main content

bind

Function bind 

Source
pub fn bind(
    addr: SocketAddr,
) -> Result<(TcpIncoming, SocketAddr), PartitionError>
Expand description

Bind a listener for the partition process.

Pass port 0 to let the OS choose; the returned address carries the resolved port so tests and waratah_bin can publish it in a routing table.