Struct wrpc_interface_http::RequestOptions
source · pub struct RequestOptions {
pub connect_timeout: Option<Duration>,
pub first_byte_timeout: Option<Duration>,
pub between_bytes_timeout: Option<Duration>,
}
Fields§
§connect_timeout: Option<Duration>
§first_byte_timeout: Option<Duration>
§between_bytes_timeout: Option<Duration>
Trait Implementations§
source§impl Clone for RequestOptions
impl Clone for RequestOptions
source§fn clone(&self) -> RequestOptions
fn clone(&self) -> RequestOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RequestOptions
impl Debug for RequestOptions
source§impl Default for RequestOptions
impl Default for RequestOptions
source§fn default() -> RequestOptions
fn default() -> RequestOptions
Returns the “default value” for a type. Read more
source§impl EncodeSync for RequestOptions
impl EncodeSync for RequestOptions
source§impl PartialEq for RequestOptions
impl PartialEq for RequestOptions
source§fn eq(&self, other: &RequestOptions) -> bool
fn eq(&self, other: &RequestOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Receive for RequestOptions
impl Receive for RequestOptions
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,
impl Eq for RequestOptions
impl StructuralPartialEq for RequestOptions
Auto Trait Implementations§
impl RefUnwindSafe for RequestOptions
impl Send for RequestOptions
impl Sync for RequestOptions
impl Unpin for RequestOptions
impl UnwindSafe for RequestOptions
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> Encode for Twhere
T: EncodeSync + Send,
impl<T> Encode for Twhere
T: EncodeSync + Send,
fn encode<'life0, 'async_trait>(
self,
payload: &'life0 mut (impl BufMut + Send + 'async_trait)
) -> Pin<Box<dyn Future<Output = Result<Option<AsyncValue>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn encode_dynamic_future<'async_trait>(
fut: impl Future<Output = Result<Option<Value>, Error>> + Send + Unpin + 'async_trait + 'static,
payload: impl BufMut + Send + 'async_trait
) -> Pin<Box<dyn Future<Output = Result<Option<AsyncValue>, Error>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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