Struct HttpConnectProxyConnectorLayer
pub struct HttpConnectProxyConnectorLayer { /* private fields */ }dns and http-backend and http and std and tcp only.Expand description
A Layer which wraps the given connector towards the proxy, dialed through a
ProxyDialer, with an HttpConnectProxyConnector, so a proxied ProxyRoute is
required.
Pair the connector it builds with a direct one in a
MaybeProxiedConnector to connect directly instead
when no proxy is requested.
Implementations§
§impl HttpConnectProxyConnectorLayer
impl HttpConnectProxyConnectorLayer
pub fn new() -> HttpConnectProxyConnectorLayer
pub fn new() -> HttpConnectProxyConnectorLayer
Create a new HttpConnectProxyConnectorLayer.
pub fn with_extensions_transfer(
self,
transfer: impl ExtensionsTransfer,
) -> HttpConnectProxyConnectorLayer
pub fn with_extensions_transfer( self, transfer: impl ExtensionsTransfer, ) -> HttpConnectProxyConnectorLayer
Set what a CONNECT tunnel keeps from the proxy connection it is nested on.
Defaults to DefaultExtensionsTransfer. Chain transfers with
ExtensionsTransfer::and to also carry your own connection-scoped
extension types across the tunnel.
pub fn set_extensions_transfer(
&mut self,
transfer: impl ExtensionsTransfer,
) -> &mut HttpConnectProxyConnectorLayer
pub fn set_extensions_transfer( &mut self, transfer: impl ExtensionsTransfer, ) -> &mut HttpConnectProxyConnectorLayer
Set what a CONNECT tunnel keeps from the proxy connection it is nested on.
Defaults to DefaultExtensionsTransfer. Chain transfers with
ExtensionsTransfer::and to also carry your own connection-scoped
extension types across the tunnel.
Trait Implementations§
§impl Clone for HttpConnectProxyConnectorLayer
impl Clone for HttpConnectProxyConnectorLayer
§fn clone(&self) -> HttpConnectProxyConnectorLayer
fn clone(&self) -> HttpConnectProxyConnectorLayer
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for HttpConnectProxyConnectorLayer
impl Debug for HttpConnectProxyConnectorLayer
§impl Default for HttpConnectProxyConnectorLayer
impl Default for HttpConnectProxyConnectorLayer
§fn default() -> HttpConnectProxyConnectorLayer
fn default() -> HttpConnectProxyConnectorLayer
§impl<S> Layer<S> for HttpConnectProxyConnectorLayer
impl<S> Layer<S> for HttpConnectProxyConnectorLayer
§type Service = HttpConnectProxyConnector<ProxyDialer<S>>
type Service = HttpConnectProxyConnector<ProxyDialer<S>>
§fn layer(
&self,
inner: S,
) -> <HttpConnectProxyConnectorLayer as Layer<S>>::Service
fn layer( &self, inner: S, ) -> <HttpConnectProxyConnectorLayer as Layer<S>>::Service
§fn into_layer(
self,
inner: S,
) -> <HttpConnectProxyConnectorLayer as Layer<S>>::Service
fn into_layer( self, inner: S, ) -> <HttpConnectProxyConnectorLayer as Layer<S>>::Service
layer but consuming self after the service was created. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for HttpConnectProxyConnectorLayer
impl !UnwindSafe for HttpConnectProxyConnectorLayer
impl Forget for HttpConnectProxyConnectorLayer
impl Freeze for HttpConnectProxyConnectorLayerwhere
*const ArcInner<dyn ExtensionsTransfer> is !null: Freeze,
PhantomData<ArcInner<dyn ExtensionsTransfer>>: Freeze,
impl Move for HttpConnectProxyConnectorLayer
impl Send for HttpConnectProxyConnectorLayer
impl Sync for HttpConnectProxyConnectorLayer
impl Unpin for HttpConnectProxyConnectorLayer
impl UnsafeUnpin for HttpConnectProxyConnectorLayerwhere
*const ArcInner<dyn ExtensionsTransfer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ExtensionsTransfer>>: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more