Struct viz::ServiceMaker
source · [−]pub struct ServiceMaker { /* private fields */ }
Implementations
sourceimpl ServiceMaker
impl ServiceMaker
Trait Implementations
sourceimpl Clone for ServiceMaker
impl Clone for ServiceMaker
sourcefn clone(&self) -> ServiceMaker
fn clone(&self) -> ServiceMaker
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<Router> for ServiceMaker
impl From<Router> for ServiceMaker
sourceimpl Service<&AddrStream> for ServiceMaker
Available on crate features http1
or http2
only.
impl Service<&AddrStream> for ServiceMaker
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.
sourcefn 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 more
sourcefn 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
sourceimpl Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>> for ServiceMaker
impl Service<&Stream<Accept<AddrStream>, TlsStream<AddrStream>>> for ServiceMaker
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.
sourcefn 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 more
sourcefn 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
sourceimpl Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>> for ServiceMaker
impl Service<&Stream<Pin<Box<dyn Future<Output = Result<TlsStream<AddrStream>, Error>> + Send + 'static, Global>>, TlsStream<AddrStream>>> for ServiceMaker
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.
sourcefn 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 more
sourcefn call(
&mut self,
t: &Stream<BoxFuture<'static, Result<TlsStream<AddrStream>, IoError>>, TlsStream<AddrStream>>
) -> Self::Future
fn call(
&mut self,
t: &Stream<BoxFuture<'static, Result<TlsStream<AddrStream>, IoError>>, TlsStream<AddrStream>>
) -> Self::Future
Process the request and return the response asynchronously. Read more
sourceimpl Service<&UnixStream> for ServiceMaker
Available on Unix and crate feature unix-socket
only.
impl Service<&UnixStream> for ServiceMaker
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.
sourcefn 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 more
sourcefn call(&mut self, _: &UnixStream) -> Self::Future
fn call(&mut self, _: &UnixStream) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ServiceMaker
impl Send for ServiceMaker
impl Sync for ServiceMaker
impl Unpin for ServiceMaker
impl !UnwindSafe for ServiceMaker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more