Struct TlsConnectionReuse
pub struct TlsConnectionReuse<P> { /* private fields */ }tls only.Expand description
Reuse rules published by the connector that performed a TLS handshake.
Capture request overrides before applying connector defaults, and publish only after a successful handshake. Pools borrow the next request’s extensions to check compatibility; callers need not configure the provider on the pool. Connector defaults, including credentials and hooks, remain fixed for the lifetime of its pool. Custom components supply stable value or instance identities.
Implementations§
§impl<P> TlsConnectionReuse<P>where
P: TlsClientConfigProvider + 'static,
impl<P> TlsConnectionReuse<P>where
P: TlsClientConfigProvider + 'static,
pub fn new(provider: P, request: &Extensions) -> TlsConnectionReuse<P>
Available on crate feature boring only.
pub fn new(provider: P, request: &Extensions) -> TlsConnectionReuse<P>
boring only.Capture request overrides relative to this connector’s fixed defaults.
pub fn tunnel(provider: P, request: &Extensions) -> TlsConnectionReuse<P>
Available on crate feature boring only.
pub fn tunnel(provider: P, request: &Extensions) -> TlsConnectionReuse<P>
boring only.Capture fixed proxy TLS policy, independently of origin TLS overrides.
The pool’s route key identifies the proxy. Caller-supplied tunnel settings must match on later requests; route-generated settings remain fixed for that route and are distinct from the caller’s overrides.
pub fn publish(self, connection: &Extensions)
Available on crate feature boring only.
pub fn publish(self, connection: &Extensions)
boring only.Publish this handshake’s rules while retaining restrictions from inner layers.
Trait Implementations§
§impl<P> ConnectionReusePolicy for TlsConnectionReuse<P>where
P: TlsClientConfigProvider + 'static,
impl<P> ConnectionReusePolicy for TlsConnectionReuse<P>where
P: TlsClientConfigProvider + 'static,
§fn is_reusable(&self) -> bool
fn is_reusable(&self) -> bool
§fn matches(&self, input: &Extensions) -> bool
fn matches(&self, input: &Extensions) -> bool
Auto Trait Implementations§
impl<P> !Freeze for TlsConnectionReuse<P>
impl<P> !RefUnwindSafe for TlsConnectionReuse<P>
impl<P> !UnwindSafe for TlsConnectionReuse<P>
impl<P> Send for TlsConnectionReuse<P>where
P: Send,
impl<P> Sync for TlsConnectionReuse<P>where
P: Sync,
impl<P> Unpin for TlsConnectionReuse<P>where
P: Unpin,
impl<P> UnsafeUnpin for TlsConnectionReuse<P>where
P: 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
§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