pub trait PortFinder {
    // Required method
    fn find_port_for_ip(
        &mut self,
        ip: IpAddr
    ) -> Option<(TcpListener, SocketAddr)>;

    // Provided method
    fn find_port(&mut self) -> Option<u16> { ... }
}

Required Methods§

Provided Methods§

source

fn find_port(&mut self) -> Option<u16>

Implementors§

source§

impl PortFinder for OsQueryPortFinder

source§

impl<const MIN: u16, const MAX: u16> PortFinder for ScanningPortFinder<MIN, MAX>

source§

impl<const MIN: u16, const MAX: u16> PortFinder for ScanningWithFallbackPortFinder<MIN, MAX>