Struct wrpc_interface_http::Request
source · pub struct Request<Body, Trailers> {
pub body: Body,
pub trailers: Trailers,
pub method: Method,
pub path_with_query: Option<String>,
pub scheme: Option<Scheme>,
pub authority: Option<String>,
pub headers: Fields,
}
Fields§
§body: Body
§trailers: Trailers
§method: Method
§path_with_query: Option<String>
§scheme: Option<Scheme>
§headers: Fields
Trait Implementations§
source§impl<Body, Trailers> Encode for Request<Body, Trailers>
impl<Body, Trailers> Encode for Request<Body, Trailers>
fn encode<'life0, 'async_trait>(
self,
payload: &'life0 mut (impl 'async_trait + BufMut + Send)
) -> Pin<Box<dyn Future<Output = Result<Option<AsyncValue>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn encode_dynamic_future(
fut: impl Future<Output = Result<Option<Value>, Error>> + Send + Unpin + 'static,
payload: impl BufMut + Send
) -> impl Future<Output = Result<Option<AsyncValue>, Error>>where
Self: Sized,
Auto Trait Implementations§
impl<Body, Trailers> Freeze for Request<Body, Trailers>
impl<Body, Trailers> RefUnwindSafe for Request<Body, Trailers>where
Body: RefUnwindSafe,
Trailers: RefUnwindSafe,
impl<Body, Trailers> Send for Request<Body, Trailers>
impl<Body, Trailers> Sync for Request<Body, Trailers>
impl<Body, Trailers> Unpin for Request<Body, Trailers>
impl<Body, Trailers> UnwindSafe for Request<Body, Trailers>where
Body: UnwindSafe,
Trailers: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<R, Ctx> ReceiveContext<Ctx> for R
impl<R, Ctx> ReceiveContext<Ctx> for R
fn receive_context<'a, 'life0, 'life1, 'async_trait, T>( _cx: &'life0 Ctx, payload: impl Buf + Send + 'async_trait + 'a, rx: &'life1 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait), sub: Option<AsyncSubscription<T>> ) -> Pin<Box<dyn Future<Output = Result<(R, Box<dyn Buf + Send + 'a>), Error>> + Send + 'async_trait>>
fn receive_context_sync<'a, 'b>(
cx: &'a Ctx,
payload: impl Buf + Send + 'b,
rx: &'a mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'a)
) -> impl Future<Output = Result<(Self, Box<dyn Buf + Send + 'b>), Error>> + Send + 'awhere
'b: 'a,
Self: 'a,
source§fn receive_list_context<'a, T>(
cx: &Ctx,
payload: impl Buf + Send + 'a,
rx: &mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin),
sub: Option<AsyncSubscription<T>>
) -> impl Future<Output = Result<(Vec<Self>, Box<dyn Buf + Send + 'a>), Error>> + Send
fn receive_list_context<'a, T>( cx: &Ctx, payload: impl Buf + Send + 'a, rx: &mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin), sub: Option<AsyncSubscription<T>> ) -> impl Future<Output = Result<(Vec<Self>, Box<dyn Buf + Send + 'a>), Error>> + Send
Receive a list
source§fn receive_tuple_context<'a, 'life0, 'async_trait, T, I>(
cx: I,
payload: impl Buf + Send + 'async_trait + 'a,
rx: &'life0 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait),
sub: Option<AsyncSubscription<T>>
) -> Pin<Box<dyn Future<Output = Result<(Vec<Self>, Box<dyn Buf + Send + 'a>), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
T: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static + 'async_trait,
I: IntoIterator<Item = &'a Ctx> + Send + 'async_trait,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Send,
Self: 'async_trait,
fn receive_tuple_context<'a, 'life0, 'async_trait, T, I>(
cx: I,
payload: impl Buf + Send + 'async_trait + 'a,
rx: &'life0 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait),
sub: Option<AsyncSubscription<T>>
) -> Pin<Box<dyn Future<Output = Result<(Vec<Self>, Box<dyn Buf + Send + 'a>), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
T: Stream<Item = Result<Bytes, Error>> + Send + Sync + 'static + 'async_trait,
I: IntoIterator<Item = &'a Ctx> + Send + 'async_trait,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Send,
Self: 'async_trait,
Receive a tuple