Function hyperion::servers::bind

source ·
pub async fn bind<T, E, F, H>(
    name: &'static str,
    options: T,
    global: Global,
    handle_client: H
) -> Result<ServerHandle>where
    T: ServerConfig + Send + 'static,
    F: Future<Output = Result<(), E>> + Send + 'static,
    E: From<Error> + Display + Send + 'static,
    H: Fn((TcpStream, SocketAddr), Global) -> F + Send + 'static,