1 use std::fmt;
2 
3 use crate::common::exec::Exec;
4 
5 /// A listening HTTP server that accepts connections in both HTTP1 and HTTP2 by default.
6 ///
7 /// Needs at least one of the `http1` and `http2` features to be activated to actually be useful.
8 pub struct Server<I, S, E = Exec> {
9     _marker: std::marker::PhantomData<(I, S, E)>,
10 }
11 
12 impl<I: fmt::Debug, S: fmt::Debug> fmt::Debug for Server<I, S> {
fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result13     fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
14         f.debug_struct("Server").finish()
15     }
16 }
17