pub async fn bind_addr(&self, ctx: &Context, port: u16) -> io::Result<SocketAddr> {
        match *self {
            ManagerServerHost::Domain(ref domain) => {
                let vaddrs = ctx.dns_resolve(domain, port).await?;
                Ok(vaddrs[0])
            }
            ManagerServerHost::Ip(ip) => Ok(SocketAddr::new(ip, port)),
        }
    }
/// Get resolved socket address for servers to bind
Get resolved socket address for servers to bind
Get resolved socket address for servers to bind
pub async fn bind_addr(&self, ctx: &Context, port: u16) -> io::Result<SocketAddr> {
        match *self {
            ManagerServerHost::Domain(ref domain) => {
                let vaddrs = ctx.dns_resolve(domain, port).await?;
                Ok(vaddrs[0])
            }
            ManagerServerHost::Ip(ip) => Ok(SocketAddr::new(ip, port)),
        }
    }
pub async fn bind_addr ( & self , ctx : & Context , port : u16 ) -> io :: Result < SocketAddr > { match * self { ManagerServerHost :: Domain ( ref domain ) => { let vaddrs = ctx . dns_resolve ( domain , port ) . await ? ; Ok ( vaddrs [ 0 ] ) } ManagerServerHost :: Ip ( ip ) => Ok ( SocketAddr :: new ( ip , port ) ) , } }
Get resolved socket address for servers to bind
Get resolved socket address for servers to bind
&self
ctx
&Context
port
u16