Struct TlsConnectorData
pub struct TlsConnectorData {
pub config: ConnectConfiguration,
pub store_server_certificate_chain: bool,
pub store_server_hello: bool,
pub server_name: Option<Host>,
pub server_verify_mode: ServerVerifyMode,
pub server_cert_pins: Option<TlsServerCertPins>,
/* private fields */
}Available on crate feature
boring only.Expand description
The resolved native BoringSSL config consumed by super::TlsConnector.
Fields§
§config: ConnectConfiguration§store_server_certificate_chain: bool§store_server_hello: boolRecord the ServerHello for the connection’s negotiated parameters.
server_name: Option<Host>§server_verify_mode: ServerVerifyMode§server_cert_pins: Option<TlsServerCertPins>Implementations§
§impl TlsConnectorData
impl TlsConnectorData
pub fn into_ssl(self) -> Result<Ssl, Box<dyn Error + Sync + Send>>
pub fn into_ssl(self) -> Result<Ssl, Box<dyn Error + Sync + Send>>
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.
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>
Build TlsConnectorData from a TlsClientConfig by gathering its
pieces (the same path the connector uses internally).
§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>
Performs the conversion.
§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>
Performs the conversion.
Auto Trait Implementations§
impl !Freeze for TlsConnectorData
impl !RefUnwindSafe for TlsConnectorData
impl !UnwindSafe for TlsConnectorData
impl Send for TlsConnectorData
impl Sync for TlsConnectorData
impl Unpin for TlsConnectorData
impl UnsafeUnpin for TlsConnectorData
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
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
§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> ⓘ
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 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>
Wrap the input message
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>
Create a new
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more