pub struct H2ClientContextParams {
pub headers_pseudo_order: Option<PseudoHeaderOrder>,
pub headers_priority: Option<StreamDependencyParams>,
pub priority: Option<Vec<PriorityParams>>,
pub setting_config: Option<SettingsConfig>,
}Expand description
Optional parameters that can be set in the [Context] of a (h2) request
to customise the connection of the h2 connection.
Can be used by Http connector services, especially in the context of proxies, where there might not be one static config that is to be applied to all client connections.
Fields§
§headers_pseudo_order: Option<PseudoHeaderOrder>Pseudo order of the headers stream
headers_priority: Option<StreamDependencyParams>Priority of the headers stream
priority: Option<Vec<PriorityParams>>Priority stream list
setting_config: Option<SettingsConfig>Config for h2 settings
Trait Implementations§
Source§impl Clone for H2ClientContextParams
impl Clone for H2ClientContextParams
Source§fn clone(&self) -> H2ClientContextParams
fn clone(&self) -> H2ClientContextParams
Returns a duplicate 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 H2ClientContextParams
impl Debug for H2ClientContextParams
Source§impl Default for H2ClientContextParams
impl Default for H2ClientContextParams
Source§fn default() -> H2ClientContextParams
fn default() -> H2ClientContextParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for H2ClientContextParams
impl RefUnwindSafe for H2ClientContextParams
impl Send for H2ClientContextParams
impl Sync for H2ClientContextParams
impl Unpin for H2ClientContextParams
impl UnwindSafe for H2ClientContextParams
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more