Struct hrpc::Request [−][src]
pub struct Request<T> { /* fields omitted */ }
Expand description
A hRPC request.
Implementations
Create a new request with the specified message.
This adds the default “content-type” header used for hRPC unary requests.
Create an empty request.
This is useful for hRPC socket requests, since they don’t send any messages.
Change / add a header.
Get a reference to the inner message.
Get a reference to the inner header map.
Get a reference to the inner socket address this request came from.
It will be none if the underlying transport doesn’t use socket addresses.
Get a header.
Destructure this request into parts.
Create a request from parts.
Trait Implementations
Convert this to a request.
Auto Trait Implementations
impl<T> RefUnwindSafe for Request<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Request<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Convert this to a request.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more