HttpServer

Trait HttpServer 

Source
pub trait HttpServer:
    Send
    + Sync
    + 'static { }
Expand description

Marker trait for HTTP server implementations.

This trait is implemented by server types that handle HTTP requests. It serves as a marker to ensure server types meet the required bounds (Send + Sync + 'static).

§Example

use http_api::HttpServer;

struct MyServer;

impl HttpServer for MyServer {}

Implementors§