pub struct HttpProxyConnectRelayServiceRequestMatcher<S = IoForwardService> { /* private fields */ }Expand description
Default matcher that can be used for Http proxy connects.
Request matches for an http proxy connect request return
a HttpProxyConnectRelayServiceResponseMatcher instance which
will match on any success responses…
Implementations§
Source§impl HttpProxyConnectRelayServiceRequestMatcher
impl HttpProxyConnectRelayServiceRequestMatcher
Sourcepub fn default_with_exec(exec: Executor) -> Self
pub fn default_with_exec(exec: Executor) -> Self
Create a HttpProxyConnectRelayServiceRequestMatcher whose default
fallback relay observes graceful shutdown via the given Executor.
Prefer this over Self::default when you have an executor available
— it lets the proxy connect bridges unwind cleanly on shutdown.
Source§impl<S> HttpProxyConnectRelayServiceRequestMatcher<S>
impl<S> HttpProxyConnectRelayServiceRequestMatcher<S>
Sourcepub fn new(relay_svc: S) -> Self
pub fn new(relay_svc: S) -> Self
Create a new HttpProxyConnectRelayServiceRequestMatcher.
Trait Implementations§
Source§impl<S: Clone> Clone for HttpProxyConnectRelayServiceRequestMatcher<S>
impl<S: Clone> Clone for HttpProxyConnectRelayServiceRequestMatcher<S>
Source§impl<S: Debug> Debug for HttpProxyConnectRelayServiceRequestMatcher<S>
impl<S: Debug> Debug for HttpProxyConnectRelayServiceRequestMatcher<S>
Source§impl<S, Body> ServiceMatcher<Request<Body>> for HttpProxyConnectRelayServiceRequestMatcher<S>
impl<S, Body> ServiceMatcher<Request<Body>> for HttpProxyConnectRelayServiceRequestMatcher<S>
Source§type Service = HttpProxyConnectRelayServiceResponseMatcher<S>
type Service = HttpProxyConnectRelayServiceResponseMatcher<S>
The value returned when a match succeeds.
Source§type ModifiedInput = Request<Body>
type ModifiedInput = Request<Body>
Input returned by matching functions,
it might be same as the original input but it can also be modified.
Source§async fn match_service(
&self,
req: Request<Body>,
) -> Result<ServiceMatch<Self::ModifiedInput, Self::Service>, Self::Error>
async fn match_service( &self, req: Request<Body>, ) -> Result<ServiceMatch<Self::ModifiedInput, Self::Service>, Self::Error>
Attempt to select a service for
input.Source§async fn into_match_service(
self,
req: Request<Body>,
) -> Result<ServiceMatch<Self::ModifiedInput, Self::Service>, Self::Error>
async fn into_match_service( self, req: Request<Body>, ) -> Result<ServiceMatch<Self::ModifiedInput, Self::Service>, Self::Error>
Attempt to select a service for
input, consuming the matcher. Read moreSource§fn boxed(
self,
) -> BoxServiceMatcher<Input, Self::Service, Self::Error, Self::ModifiedInput>where
Self: Sized,
fn boxed(
self,
) -> BoxServiceMatcher<Input, Self::Service, Self::Error, Self::ModifiedInput>where
Self: Sized,
Box this matcher for dynamic dispatch.
Auto Trait Implementations§
impl<S> Freeze for HttpProxyConnectRelayServiceRequestMatcher<S>where
S: Freeze,
impl<S> RefUnwindSafe for HttpProxyConnectRelayServiceRequestMatcher<S>where
S: RefUnwindSafe,
impl<S> Send for HttpProxyConnectRelayServiceRequestMatcher<S>where
S: Send,
impl<S> Sync for HttpProxyConnectRelayServiceRequestMatcher<S>where
S: Sync,
impl<S> Unpin for HttpProxyConnectRelayServiceRequestMatcher<S>where
S: Unpin,
impl<S> UnsafeUnpin for HttpProxyConnectRelayServiceRequestMatcher<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for HttpProxyConnectRelayServiceRequestMatcher<S>where
S: UnwindSafe,
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
Mutably borrows from an owned value. Read more
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<Input, T> DynServiceMatcher<Input> for Twhere
T: ServiceMatcher<Input>,
impl<Input, T> DynServiceMatcher<Input> for Twhere
T: ServiceMatcher<Input>,
Source§type Service = <T as ServiceMatcher<Input>>::Service
type Service = <T as ServiceMatcher<Input>>::Service
The value returned when a match succeeds.
Source§type Error = <T as ServiceMatcher<Input>>::Error
type Error = <T as ServiceMatcher<Input>>::Error
The error that can happen while evaluating the matcher.
Source§type ModifiedInput = <T as ServiceMatcher<Input>>::ModifiedInput
type ModifiedInput = <T as ServiceMatcher<Input>>::ModifiedInput
The input after matcher evaluation.
Source§fn match_service_box(
&self,
input: Input,
) -> Pin<Box<dyn Future<Output = Result<ServiceMatch<<T as DynServiceMatcher<Input>>::ModifiedInput, <T as DynServiceMatcher<Input>>::Service>, <T as DynServiceMatcher<Input>>::Error>> + Send + '_>>
fn match_service_box( &self, input: Input, ) -> Pin<Box<dyn Future<Output = Result<ServiceMatch<<T as DynServiceMatcher<Input>>::ModifiedInput, <T as DynServiceMatcher<Input>>::Service>, <T as DynServiceMatcher<Input>>::Error>> + Send + '_>>
Attempt to select a service for
input.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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
impl<T, U> RamaTryFrom<T> for Uwhere
U: TryFrom<T>,
Source§impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for Twhere
U: RamaTryFrom<T, CrateMarker>,
type Error = <U as RamaTryFrom<T, CrateMarker>>::Error
fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<V, F> ValueFormatter<&V> for F
impl<V, F> ValueFormatter<&V> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &&V)
fn format_value(writer: impl ValueWriter, value: &&V)
Write
value to writerSource§impl<V, F> ValueFormatter<Arc<V>> for F
impl<V, F> ValueFormatter<Arc<V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Arc<V>)
fn format_value(writer: impl ValueWriter, value: &Arc<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Box<V>> for F
impl<V, F> ValueFormatter<Box<V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Box<V>)
fn format_value(writer: impl ValueWriter, value: &Box<V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Cow<'_, V>> for F
impl<V, F> ValueFormatter<Cow<'_, V>> for F
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)
Write
value to writerSource§impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
impl<V, F> ValueFormatter<Option<V>> for Fwhere
F: ValueFormatter<V> + ?Sized,
Source§const SHAPE: FieldShape<'static>
const SHAPE: FieldShape<'static>
Available on non-
metrique_require_explicit_impls only.The shape of values produced by this formatter. Read more
Source§fn format_value(writer: impl ValueWriter, value: &Option<V>)
fn format_value(writer: impl ValueWriter, value: &Option<V>)
Write
value to writer