pub struct RequestVersionAdapterLayer { /* private fields */ }Expand description
ConnectorService layer which will adapt the request version if needed.
It will adapt the request version to TargetHttpVersion, or the configured
default version
Implementations§
Source§impl RequestVersionAdapterLayer
impl RequestVersionAdapterLayer
pub fn new() -> Self
Sourcepub fn maybe_with_default_version(self, version: Option<Version>) -> Self
pub fn maybe_with_default_version(self, version: Option<Version>) -> Self
Set default request Version which will be used if TargetHttpVersion is
is not present in extensions
Sourcepub fn maybe_set_default_version(
&mut self,
version: Option<Version>,
) -> &mut Self
pub fn maybe_set_default_version( &mut self, version: Option<Version>, ) -> &mut Self
Set default request Version which will be used if TargetHttpVersion is
is not present in extensions
Sourcepub fn with_default_version(self, version: Version) -> Self
pub fn with_default_version(self, version: Version) -> Self
Set default request Version which will be used if TargetHttpVersion is
is not present in extensions
Sourcepub fn set_default_version(&mut self, version: Version) -> &mut Self
pub fn set_default_version(&mut self, version: Version) -> &mut Self
Set default request Version which will be used if TargetHttpVersion is
is not present in extensions
Sourcepub fn without_default_version(self) -> Self
pub fn without_default_version(self) -> Self
Set default request Version which will be used if TargetHttpVersion is
is not present in extensions
Sourcepub fn unset_default_version(&mut self) -> &mut Self
pub fn unset_default_version(&mut self) -> &mut Self
Set default request Version which will be used if TargetHttpVersion is
is not present in extensions
Trait Implementations§
Source§impl Clone for RequestVersionAdapterLayer
impl Clone for RequestVersionAdapterLayer
Source§fn clone(&self) -> RequestVersionAdapterLayer
fn clone(&self) -> RequestVersionAdapterLayer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RequestVersionAdapterLayer
impl Debug for RequestVersionAdapterLayer
Source§impl Default for RequestVersionAdapterLayer
impl Default for RequestVersionAdapterLayer
Source§fn default() -> RequestVersionAdapterLayer
fn default() -> RequestVersionAdapterLayer
Source§impl<S> Layer<S> for RequestVersionAdapterLayer
impl<S> Layer<S> for RequestVersionAdapterLayer
Source§type Service = RequestVersionAdapter<S>
type Service = RequestVersionAdapter<S>
Source§fn layer(&self, inner: S) -> Self::Service
fn layer(&self, inner: S) -> Self::Service
Source§fn into_layer(self, inner: S) -> Self::Service
fn into_layer(self, inner: S) -> Self::Service
layer but consuming self after the service was created. Read moreAuto Trait Implementations§
impl Freeze for RequestVersionAdapterLayer
impl RefUnwindSafe for RequestVersionAdapterLayer
impl Send for RequestVersionAdapterLayer
impl Sync for RequestVersionAdapterLayer
impl Unpin for RequestVersionAdapterLayer
impl UnsafeUnpin for RequestVersionAdapterLayer
impl UnwindSafe for RequestVersionAdapterLayer
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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