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 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.
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V