pub fn start(&mut self) -> Result<(), ServerError> {
        log::info!("Starting server {}", self.address);
        let listener = TcpListener::bind(self.address)?;

        for stream in listener.incoming() {
            match stream {
                Ok(stream) => {
                    self.handle_connection(stream);
                }
                Err(e) => {
                    log::error!("Connection failed: {}", e);
                }
            }
        }

        Ok(())
    }
/// Start Copiepate server. Listen for ever.
Start Copiepate server. Listen for ever.
Start Copiepate server . Listen for ever .
pub fn start(&mut self) -> Result<(), ServerError> {
        log::info!("Starting server {}", self.address);
        let listener = TcpListener::bind(self.address)?;
        for stream in listener.incoming() {
            match stream {
                Ok(stream) => {
                    self.handle_connection(stream);
                }
                Err(e) => {
                    log::error!("Connection failed: {}", e);
                }
            }
        }
        Ok(())
    }
pub fn start ( & mut self ) -> Result < ( ) , ServerError > { log :: info ! ( " " self address ) ; let listener = TcpListener :: bind ( self . address ) ? ; for stream in listener . incoming ( ) { match stream { Ok ( stream ) => { self . handle_connection ( stream ) ; } Err ( e ) => { log :: error ! ( " " e ) ; } } } Ok ( ( ) ) }
Start Copiepate server.
Start Copiepate server .
&mut self