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: http_tcp_listener.rs
    path of file: ./repos/CYFS/src/component/cyfs-stack/src/interface
    
    the code of the file until where you have to start completion: use super::http_server::{HttpRequestSource, HttpServerHandlerRef};
use super::ObjectListener;
use cyfs_base::*;
use cyfs_lib::{BaseTcpListener, BaseTcpListenerHandler, RequestProtocol};

use async_std::net::TcpStream;
use async_trait::async_trait;
use std::net::SocketAddr;
use std::sync::atomic::AtomicU64;
use std::sync::Arc;

#[derive(Clone)]
pub
    
    pub fn new(addr: SocketAddr, device_id: DeviceId, server: HttpServerHandlerRef) -> Self {
        let listen_url = format!("http://{}", addr);
        let ret = Self {
            tcp_server: BaseTcpListener::new(addr),
            listen_url,
            device_id,
            server,
            seq: Arc::new(AtomicU64::new(0)),
        };

        let tcp_handler = Arc::new(Box::new(ret.clone()) as Box<dyn BaseTcpListenerHandler>);
        ret.tcp_server.bind_handler(tcp_handler);

        ret
    }