Struct httpbis::server_conn::ServerConnection [−][src]
pub struct ServerConnection { /* fields omitted */ }
Methods
impl ServerConnection
[src]
impl ServerConnection
pub fn new<S, A>(
lh: &Handle,
socket: Box<StreamItem>,
tls: ServerTlsOption<A>,
exec: CpuPoolOption,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
A: TlsAcceptor,
[src]
pub fn new<S, A>(
lh: &Handle,
socket: Box<StreamItem>,
tls: ServerTlsOption<A>,
exec: CpuPoolOption,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
A: TlsAcceptor,
pub fn new_plain_single_thread<S>(
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
[src]
pub fn new_plain_single_thread<S>(
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
service: Arc<S>
) -> (ServerConnection, HttpFuture<()>) where
S: Service,
pub fn new_plain_single_thread_fn<F>(
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
f: F
) -> (ServerConnection, HttpFuture<()>) where
F: Fn(Headers, HttpPartStream) -> Response + Send + Sync + 'static,
[src]
pub fn new_plain_single_thread_fn<F>(
lh: &Handle,
socket: TcpStream,
conf: ServerConf,
f: F
) -> (ServerConnection, HttpFuture<()>) where
F: Fn(Headers, HttpPartStream) -> Response + Send + Sync + 'static,
pub fn dump_state(&self) -> HttpFutureSend<ConnectionStateSnapshot>
[src]
pub fn dump_state(&self) -> HttpFutureSend<ConnectionStateSnapshot>
For tests
Auto Trait Implementations
impl Send for ServerConnection
impl Send for ServerConnection
impl Sync for ServerConnection
impl Sync for ServerConnection