You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: server.rs
    path of file: ./repos/summer-boot/summer-boot/src/server
    
    the code of the file until where you have to start completion: //! HTTP server
use super::endpoint::Endpoint;
use crate::gateway;
use crate::log;
use crate::tcp;
use crate::utils;
use crate::{Request, Route};

use async_std::io;
use async_std::sync::Arc;

use gateway::router::{Router, Selection};
use tcp::{Listener, ToListener};
use ut
    
    pub async fn listen<L: ToListener<State>>(self, listener: L) -> io::Result<()> {
        let mut listener = listener.to_listener()?;
        listener.bind(self).await?;
        for info in listener.info().iter() {
            log::info!("Server listening on {}", info);
        }
        listener.accept().await?;
        Ok(())
    }