Struct TlsConnectorData
pub struct TlsConnectorData {
pub config: ConnectConfiguration,
pub store_server_certificate_chain: bool,
pub store_server_hello: bool,
pub server_name: Option<ServerName>,
pub server_verify_mode: ServerVerifyMode,
pub server_cert_pins: Option<TlsServerCertPins>,
pub server_cert_chain_policy: Option<DynTlsServerCertChainPolicy>,
/* private fields */
}boring only.Expand description
The resolved native BoringSSL config consumed by super::TlsConnector.
Fields§
§config: ConnectConfiguration§store_server_certificate_chain: bool§store_server_hello: bool§server_name: Option<ServerName>§server_verify_mode: ServerVerifyMode§server_cert_pins: Option<TlsServerCertPins>§server_cert_chain_policy: Option<DynTlsServerCertChainPolicy>Implementations§
§impl TlsConnectorData
impl TlsConnectorData
pub fn offered_versions(&self) -> Option<&[u16]>
pub fn offered_versions(&self) -> Option<&[u16]>
The supported_versions list sent as set, when it is not the native range.
pub fn configure_target_ech(
&mut self,
extensions: &Extensions,
target: &HostWithPort,
) -> Result<(), Box<dyn Error + Send + Sync>>
pub fn configure_target_ech( &mut self, extensions: &Extensions, target: &HostWithPort, ) -> Result<(), Box<dyn Error + Send + Sync>>
Apply endpoint ECH data to this connection, independently of shared contexts.
Call before into_ssl, using the actual TLS hop’s physical endpoint.
pub fn configure_resolved_target_ech(
&mut self,
target: &HostWithPort,
resolution: TargetEchResolution,
) -> Result<(), Box<dyn Error + Send + Sync>>
pub fn configure_resolved_target_ech( &mut self, target: &HostWithPort, resolution: TargetEchResolution, ) -> Result<(), Box<dyn Error + Send + Sync>>
Apply the same endpoint resolution used to prepare this session’s profile.
pub fn into_ssl(self) -> Result<Ssl, Box<dyn Error + Send + Sync>>
pub fn into_ssl(self) -> Result<Ssl, Box<dyn Error + Send + Sync>>
Prepare one TLS session, including peer identity verification and certificate pins.
The caller selects its transport and starts the handshake. A transport
requiring a stored session must supply it before emitting handshake output.
The engine negotiates its min..max range, so a caller must reject a negotiated
version missing from Self::offered_versions.
pub fn resumes_sessions(&self) -> bool
pub fn resumes_sessions(&self) -> bool
Whether Self::into_ssl offers a stored session for resumption.
Trait Implementations§
§impl Debug for TlsConnectorData
impl Debug for TlsConnectorData
§impl TryFrom<&TlsClientConfig> for TlsConnectorData
impl TryFrom<&TlsClientConfig> for TlsConnectorData
§fn try_from(
value: &TlsClientConfig,
) -> Result<TlsConnectorData, <TlsConnectorData as TryFrom<&TlsClientConfig>>::Error>
fn try_from( value: &TlsClientConfig, ) -> Result<TlsConnectorData, <TlsConnectorData as TryFrom<&TlsClientConfig>>::Error>
§impl TryFrom<BoringTlsConnectorConfig<'_>> for TlsConnectorData
impl TryFrom<BoringTlsConnectorConfig<'_>> for TlsConnectorData
§fn try_from(
value: BoringTlsConnectorConfig<'_>,
) -> Result<TlsConnectorData, <TlsConnectorData as TryFrom<BoringTlsConnectorConfig<'_>>>::Error>
fn try_from( value: BoringTlsConnectorConfig<'_>, ) -> Result<TlsConnectorData, <TlsConnectorData as TryFrom<BoringTlsConnectorConfig<'_>>>::Error>
§impl TryFrom<TlsConnectorData> for PreparedClient
impl TryFrom<TlsConnectorData> for PreparedClient
§fn try_from(
data: TlsConnectorData,
) -> Result<PreparedClient, <PreparedClient as TryFrom<TlsConnectorData>>::Error>
fn try_from( data: TlsConnectorData, ) -> Result<PreparedClient, <PreparedClient as TryFrom<TlsConnectorData>>::Error>
Auto Trait Implementations§
impl !Freeze for TlsConnectorData
impl !RefUnwindSafe for TlsConnectorData
impl !UnwindSafe for TlsConnectorData
impl Forget for TlsConnectorData
impl Move for TlsConnectorData
impl Send for TlsConnectorDatawhere
Ssl: Send,
Bytes: Send,
Arc<Vec<TlsServerCertPinSet>>: Send,
Arc<dyn TlsServerCertChainPolicy>: Send,
Arc<PlatformVerifier>: Send,
Arc<dyn TlsClientSessionStore>: Send,
Arc<[u16]>: Send,
impl Sync for TlsConnectorDatawhere
Ssl: Sync,
Bytes: Sync,
Arc<Vec<TlsServerCertPinSet>>: Sync,
Arc<dyn TlsServerCertChainPolicy>: Sync,
Arc<PlatformVerifier>: Sync,
Arc<dyn TlsClientSessionStore>: Sync,
Arc<[u16]>: Sync,
impl Unpin for TlsConnectorData
impl UnsafeUnpin for TlsConnectorDatawhere
*const ssl_st is !null: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const ArcInner<Vec<TlsServerCertPinSet>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<TlsServerCertPinSet>>>: UnsafeUnpin,
*const ArcInner<dyn TlsServerCertChainPolicy> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn TlsServerCertChainPolicy>>: UnsafeUnpin,
*const ArcInner<PlatformVerifier> is !null: UnsafeUnpin,
PhantomData<ArcInner<PlatformVerifier>>: UnsafeUnpin,
*const ArcInner<dyn TlsClientSessionStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn TlsClientSessionStore>>: UnsafeUnpin,
*const ArcInner<[u16]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u16]>>: 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