Struct viz::ServiceMaker
source · pub struct ServiceMaker { /* private fields */ }
Expand description
Service Maker
Implementations§
Trait Implementations§
source§impl Clone for ServiceMaker
impl Clone for ServiceMaker
source§fn clone(&self) -> ServiceMaker
fn clone(&self) -> ServiceMaker
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 moresource§impl Debug for ServiceMaker
impl Debug for ServiceMaker
source§impl From<Router> for ServiceMaker
impl From<Router> for ServiceMaker
source§impl Service<&AddrStream> for ServiceMaker
Available on crate features http1
or http2
only.
impl Service<&AddrStream> for ServiceMaker
Available on crate features
http1
or http2
only.§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<<ServiceMaker as Service<&AddrStream>>::Response, <ServiceMaker as Service<&AddrStream>>::Error>>
type Future = Ready<Result<<ServiceMaker as Service<&AddrStream>>::Response, <ServiceMaker as Service<&AddrStream>>::Error>>
The future response value.
source§fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read moresource§fn call(&mut self, socket: &AddrStream) -> Self::Future
fn call(&mut self, socket: &AddrStream) -> Self::Future
Process the request and return the response asynchronously. Read more
source§impl Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>> for ServiceMaker
Available on crate feature rustls
and (crate features rustls
or native-tls
) only.
impl Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>> for ServiceMaker
Available on crate feature
rustls
and (crate features rustls
or native-tls
) only.§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<<ServiceMaker as Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>>>::Response, <ServiceMaker as Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>>>::Error>>
type Future = Ready<Result<<ServiceMaker as Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>>>::Response, <ServiceMaker as Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>>>::Error>>
The future response value.
source§fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, _cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read moresource§fn call(
&mut self,
t: &Stream<TlsAccept<AddrStream>, TlsStream<AddrStream>>
) -> Self::Future
fn call(
&mut self,
t: &Stream<TlsAccept<AddrStream>, TlsStream<AddrStream>>
) -> Self::Future
Process the request and return the response asynchronously. Read more
source§impl Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>> for ServiceMaker
Available on crate feature native-tls
and (crate features rustls
or native-tls
) only.
impl Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>> for ServiceMaker
Available on crate feature
native-tls
and (crate features rustls
or native-tls
) only.§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<<ServiceMaker as Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>>>::Response, <ServiceMaker as Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>>>::Error>>
type Future = Ready<Result<<ServiceMaker as Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>>>::Response, <ServiceMaker as Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>>>::Error>>
The future response value.
source§impl Service<&UnixStream> for ServiceMaker
Available on Unix and crate feature unix-socket
only.
impl Service<&UnixStream> for ServiceMaker
Available on Unix and crate feature
unix-socket
only.§type Error = Infallible
type Error = Infallible
Errors produced by the service.
§type Future = Ready<Result<<ServiceMaker as Service<&UnixStream>>::Response, <ServiceMaker as Service<&UnixStream>>::Error>>
type Future = Ready<Result<<ServiceMaker as Service<&UnixStream>>::Response, <ServiceMaker as Service<&UnixStream>>::Error>>
The future response value.
source§fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Poll::Ready(Ok(()))
when the service is able to process requests. Read moresource§fn call(&mut self, _: &UnixStream) -> Self::Future
fn call(&mut self, _: &UnixStream) -> Self::Future
Process the request and return the response asynchronously. Read more