Struct cyfs_util::HttpTcpListener
source · pub struct HttpTcpListener(_);
Implementations§
source§impl HttpTcpListener
impl HttpTcpListener
pub fn new(addr: SocketAddr, server: HttpServer) -> Self
pub fn new_with_raw_server(addr: SocketAddr, server: Arc<Server<()>>) -> Self
pub fn get_local_addr(&self) -> SocketAddr
pub async fn start(&self) -> BuckyResult<()>
pub fn stop(&self)
Trait Implementations§
source§impl Clone for HttpTcpListener
impl Clone for HttpTcpListener
source§fn clone(&self) -> HttpTcpListener
fn clone(&self) -> HttpTcpListener
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more