Struct hrpc::Request [−][src]
pub struct Request<T> { /* fields omitted */ }
Expand description
A hRPC request.
Implementations
Get an immutable reference to the header map.
Get a mutable reference to the header map.
Get a mutable reference to the header map, inserting a new one if it doesn’t already exist.
Get an immutable reference to the HTTP extensions.
Get a mutable reference to the HTTP extensions.
Get a mutable reference to the HTTP extensions, inserting a new one if it doesn’t already exist.
Creates a new request using the provided body.
Get a mutable reference to the extensions of this response.
Get an immutable reference to the extensions of this response.
Get a mutable reference to the endpoint of this response.
Extract the body from the request and decode it into the message.
Trait Implementations
Convert this to a hRPC request.
type Response = BoxResponse
type Response = BoxResponse
Responses given by the service.
type Error = Infallible
type Error = Infallible
Errors produced by the service.
type Future = BoxFuture<'static, Result<BoxResponse, Infallible>>
type Future = BoxFuture<'static, Result<BoxResponse, Infallible>>
The future response value.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
type Response = BoxResponse
type Response = BoxResponse
Responses given by the service.
type Error = Infallible
type Error = Infallible
Errors produced by the service.
type Future = BoxFuture<'static, Result<BoxResponse, Infallible>>
type Future = BoxFuture<'static, Result<BoxResponse, Infallible>>
The future response value.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
impl<S> Service<Request<()>> for ErrorIdentifierToStatus<S> where
S: Service<BoxRequest, Response = BoxResponse>,
impl<S> Service<Request<()>> for ErrorIdentifierToStatus<S> where
S: Service<BoxRequest, Response = BoxResponse>,
type Response = BoxResponse
type Response = BoxResponse
Responses given by the service.
type Future = ErrorIdentifierToStatusFuture<S::Future>
type Future = ErrorIdentifierToStatusFuture<S::Future>
The future response value.
Returns Poll::Ready(Ok(()))
when the service is able to process requests. Read more
Process the request and return the response asynchronously. Read more
Auto Trait Implementations
impl<T> !RefUnwindSafe for Request<T>
impl<T> !UnwindSafe for Request<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
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;
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;
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;
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;
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn vzip(self) -> V
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>,
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>,
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
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;
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;
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more