Struct wrpc_interface_http::OutgoingRequest
source · pub struct OutgoingRequest<T> {
pub body: T,
pub method: Method,
pub path_with_query: Option<String>,
pub scheme: Option<Scheme>,
pub authority: Option<String>,
pub headers: Fields,
}
Fields§
§body: T
§method: Method
§path_with_query: Option<String>
§scheme: Option<Scheme>
§headers: Fields
Trait Implementations§
source§impl<T> Encode for OutgoingRequest<T>
impl<T> Encode for OutgoingRequest<T>
source§impl Receive for OutgoingRequest<Box<dyn Stream<Item = Result<StreamItem<Bytes, Option<Fields>>>> + Send + Unpin>>
impl Receive for OutgoingRequest<Box<dyn Stream<Item = Result<StreamItem<Bytes, Option<Fields>>>> + Send + Unpin>>
fn receive<'life0, 'async_trait, T>( payload: impl 'async_trait + Buf + Send + 'static, rx: &'life0 mut (impl 'async_trait + Stream<Item = Result<Bytes>> + Send + Sync + Unpin), sub: Option<AsyncSubscription<T>> ) -> Pin<Box<dyn Future<Output = Result<(Self, Box<dyn Buf + Send>)>> + Send + 'async_trait>>
fn receive_sync<'life0, 'async_trait>(
payload: impl Buf + Send + 'async_trait + 'static,
rx: &'life0 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait)
) -> Pin<Box<dyn Future<Output = Result<(Self, Box<dyn Buf + Send>), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Send + 'async_trait,
Auto Trait Implementations§
impl<T> RefUnwindSafe for OutgoingRequest<T>where
T: RefUnwindSafe,
impl<T> Send for OutgoingRequest<T>where
T: Send,
impl<T> Sync for OutgoingRequest<T>where
T: Sync,
impl<T> Unpin for OutgoingRequest<T>where
T: Unpin,
impl<T> UnwindSafe for OutgoingRequest<T>where
T: 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<'life0, 'life1, 'async_trait, T>( _cx: &'life0 Ctx, payload: impl Buf + Send + 'async_trait + 'static, 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>), Error>> + Send + 'async_trait>>
fn receive_context_sync<'life0, 'life1, 'async_trait>(
cx: &'life0 Ctx,
payload: impl Buf + Send + 'async_trait + 'static,
rx: &'life1 mut (impl Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'async_trait)
) -> Pin<Box<dyn Future<Output = Result<(Self, Box<dyn Buf + Send>), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: Send + 'async_trait,
source§fn receive_list_context<'life0, 'life1, 'async_trait, T>(
cx: &'life0 Ctx,
payload: impl Buf + Send + 'async_trait + 'static,
rx: &'life1 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>), Error>> + Send + 'async_trait>>
fn receive_list_context<'life0, 'life1, 'async_trait, T>( cx: &'life0 Ctx, payload: impl Buf + Send + 'async_trait + 'static, rx: &'life1 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>), Error>> + Send + 'async_trait>>
Receive a list
source§fn receive_tuple_context<'a, 'life0, 'async_trait, T, I>(
cx: I,
payload: impl Buf + Send + 'async_trait + 'static,
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>), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
T: Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'static + 'async_trait,
I: IntoIterator<Item = &'a Ctx> + Send + 'async_trait,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Send,
Self: Send + 'async_trait,
fn receive_tuple_context<'a, 'life0, 'async_trait, T, I>(
cx: I,
payload: impl Buf + Send + 'async_trait + 'static,
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>), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
T: Stream<Item = Result<Bytes, Error>> + Send + Sync + Unpin + 'static + 'async_trait,
I: IntoIterator<Item = &'a Ctx> + Send + 'async_trait,
<I as IntoIterator>::IntoIter: ExactSizeIterator + Send,
Self: Send + 'async_trait,
Receive a tuple