Struct TargetEchConfigLayer
pub struct TargetEchConfigLayer<R = GlobalDnsResolver> { /* private fields */ }dns and tls only.Expand description
Discover ECH for an already selected physical endpoint without adding a cache.
Implementations§
§impl TargetEchConfigLayer
impl TargetEchConfigLayer
pub fn new() -> TargetEchConfigLayer
Available on crate feature boring only.
pub fn new() -> TargetEchConfigLayer
boring only.Use the global resolver. Declare backend support with with_capable.
§impl<R> TargetEchConfigLayer<R>
impl<R> TargetEchConfigLayer<R>
pub fn with_resolver<T>(self, resolver: T) -> TargetEchConfigLayer<T>
Available on crate feature boring only.
pub fn with_resolver<T>(self, resolver: T) -> TargetEchConfigLayer<T>
boring only.Use a custom HTTPS resolver. Address resolution remains with the transport.
pub fn with_tls(self, tls: TlsClientConfig) -> TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn with_tls(self, tls: TlsClientConfig) -> TargetEchConfigLayer<R>
boring only.Connector defaults used when resolving request ECH intent and ALPN.
pub fn set_tls(&mut self, tls: TlsClientConfig) -> &mut TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn set_tls(&mut self, tls: TlsClientConfig) -> &mut TargetEchConfigLayer<R>
boring only.Connector defaults used when resolving request ECH intent and ALPN.
pub fn with_capable(self, capable: bool) -> TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn with_capable(self, capable: bool) -> TargetEchConfigLayer<R>
boring only.Declare real ECH support in the inner TLS backend (default false).
pub fn set_capable(&mut self, capable: bool) -> &mut TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn set_capable(&mut self, capable: bool) -> &mut TargetEchConfigLayer<R>
boring only.Declare real ECH support in the inner TLS backend (default false).
pub fn with_proxy_discovery(self, allowed: bool) -> TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn with_proxy_discovery(self, allowed: bool) -> TargetEchConfigLayer<R>
boring only.Permit this resolver to learn names delegated to a proxy (default false).
pub fn set_proxy_discovery(
&mut self,
allowed: bool,
) -> &mut TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn set_proxy_discovery( &mut self, allowed: bool, ) -> &mut TargetEchConfigLayer<R>
boring only.Permit this resolver to learn names delegated to a proxy (default false).
pub fn with_timeout(self, timeout: Duration) -> TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn with_timeout(self, timeout: Duration) -> TargetEchConfigLayer<R>
boring only.Bound HTTPS discovery before invoking the inner service.
pub fn set_timeout(&mut self, timeout: Duration) -> &mut TargetEchConfigLayer<R>
Available on crate feature boring only.
pub fn set_timeout(&mut self, timeout: Duration) -> &mut TargetEchConfigLayer<R>
boring only.Bound HTTPS discovery before invoking the inner service.
§impl<R> TargetEchConfigLayer<R>where
R: DnsServiceBindingResolver,
impl<R> TargetEchConfigLayer<R>where
R: DnsServiceBindingResolver,
pub async fn prepare<T>(
&self,
input: &T,
) -> Result<(), Box<dyn Error + Send + Sync>>where
T: ConnectorTargetInputExt,
Available on crate feature boring only.
pub async fn prepare<T>(
&self,
input: &T,
) -> Result<(), Box<dyn Error + Send + Sync>>where
T: ConnectorTargetInputExt,
boring only.Prepare a selected endpoint. Explicit matching preknowledge takes precedence. Backend capability gates DNS; final intent may be installed later by a profile.
pub async fn prepare_client_hello<I>(
&self,
input: &InputWithClientHello<I>,
) -> Result<(), Box<dyn Error + Send + Sync>>where
I: ExtensionsRef,
Available on crate feature boring only.
pub async fn prepare_client_hello<I>(
&self,
input: &InputWithClientHello<I>,
) -> Result<(), Box<dyn Error + Send + Sync>>where
I: ExtensionsRef,
boring only.Discover for a mirrored TLS flow, querying SNI even for an IP dial target.
The resulting configuration stays bound to the already connected endpoint.
An explicit ConnectorTarget is required; this adapter never guesses a port.
Trait Implementations§
§impl<R> Clone for TargetEchConfigLayer<R>where
R: Clone,
impl<R> Clone for TargetEchConfigLayer<R>where
R: Clone,
§fn clone(&self) -> TargetEchConfigLayer<R>
fn clone(&self) -> TargetEchConfigLayer<R>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl<R> Debug for TargetEchConfigLayer<R>where
R: Debug,
impl<R> Debug for TargetEchConfigLayer<R>where
R: Debug,
§impl Default for TargetEchConfigLayer
impl Default for TargetEchConfigLayer
§fn default() -> TargetEchConfigLayer
fn default() -> TargetEchConfigLayer
§impl<S, R> Layer<S> for TargetEchConfigLayer<R>where
R: Clone,
impl<S, R> Layer<S> for TargetEchConfigLayer<R>where
R: Clone,
§type Service = TargetEchConfigService<S, R>
type Service = TargetEchConfigService<S, R>
§fn layer(&self, inner: S) -> <TargetEchConfigLayer<R> as Layer<S>>::Service
fn layer(&self, inner: S) -> <TargetEchConfigLayer<R> as Layer<S>>::Service
§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<R = GlobalDnsResolver> !RefUnwindSafe for TargetEchConfigLayer<R>
impl<R = GlobalDnsResolver> !UnwindSafe for TargetEchConfigLayer<R>
impl<R> Forget for TargetEchConfigLayer<R>
impl<R> Freeze for TargetEchConfigLayer<R>where
R: Freeze,
impl<R> Move for TargetEchConfigLayer<R>
impl<R> Send for TargetEchConfigLayer<R>where
R: Send,
impl<R> Sync for TargetEchConfigLayer<R>where
R: Sync,
impl<R> Unpin for TargetEchConfigLayer<R>where
R: Unpin,
impl<R> UnsafeUnpin for TargetEchConfigLayer<R>where
R: 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