azalea_protocol::resolver

Function resolve_address

Source
pub fn resolve_address<'life0, 'async_recursion>(
    address: &'life0 ServerAddress,
) -> Pin<Box<dyn Future<Output = Result<SocketAddr, ResolverError>> + Send + 'async_recursion>>
where 'life0: 'async_recursion,
Expand description

Resolve a Minecraft server address into an IP address and port. If it’s already an IP address, it’s returned as-is.