Skip to main content

TlsPoolIdBuilder

Struct TlsPoolIdBuilder 

pub struct TlsPoolIdBuilder<'a> { /* private fields */ }
Available on crate feature tls only.
Expand description

Build a backend-independent identity with shared presence and field encoding.

Ordinary settings are borrowed without allocation. Custom component identities are captured in shared storage. Settings are encoded in one canonical order, independent of setter order. Library adapters should exhaustively destructure their configuration before setting fields, so additions require an explicit pooling decision.

Implementations§

§

impl<'a> TlsPoolIdBuilder<'a>

pub fn maybe_with_alpn(self, value: Option<&'a TlsAlpn>) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered application protocol offer.

pub fn maybe_set_alpn( &mut self, value: Option<&'a TlsAlpn>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered application protocol offer.

pub fn with_alpn(self, value: &'a TlsAlpn) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered application protocol offer.

pub fn set_alpn(&mut self, value: &'a TlsAlpn) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered application protocol offer.

pub fn without_alpn(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered application protocol offer.

pub fn unset_alpn(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered application protocol offer.

pub fn maybe_with_versions( self, value: Option<&'a TlsSupportedVersions>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported TLS versions.

pub fn maybe_set_versions( &mut self, value: Option<&'a TlsSupportedVersions>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported TLS versions.

pub fn with_versions( self, value: &'a TlsSupportedVersions, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported TLS versions.

pub fn set_versions( &mut self, value: &'a TlsSupportedVersions, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported TLS versions.

pub fn without_versions(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported TLS versions.

pub fn unset_versions(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported TLS versions.

pub fn maybe_with_verify( self, value: Option<&'a TlsServerVerify>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Server certificate verification mode.

pub fn maybe_set_verify( &mut self, value: Option<&'a TlsServerVerify>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Server certificate verification mode.

pub fn with_verify(self, value: &'a TlsServerVerify) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Server certificate verification mode.

pub fn set_verify( &mut self, value: &'a TlsServerVerify, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Server certificate verification mode.

pub fn without_verify(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Server certificate verification mode.

pub fn unset_verify(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Server certificate verification mode.

pub fn maybe_with_keylog( self, value: Option<&'a TlsKeyLog>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Key logging policy; a custom sink is identified by its shared instance.

pub fn maybe_set_keylog( &mut self, value: Option<&'a TlsKeyLog>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Key logging policy; a custom sink is identified by its shared instance.

pub fn with_keylog(self, value: &'a TlsKeyLog) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Key logging policy; a custom sink is identified by its shared instance.

pub fn set_keylog(&mut self, value: &'a TlsKeyLog) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Key logging policy; a custom sink is identified by its shared instance.

pub fn without_keylog(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Key logging policy; a custom sink is identified by its shared instance.

pub fn unset_keylog(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Key logging policy; a custom sink is identified by its shared instance.

pub fn maybe_with_server_name( self, value: Option<&'a TlsServerName>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicit server-name override.

pub fn maybe_set_server_name( &mut self, value: Option<&'a TlsServerName>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicit server-name override.

pub fn with_server_name(self, value: &'a TlsServerName) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicit server-name override.

pub fn set_server_name( &mut self, value: &'a TlsServerName, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicit server-name override.

pub fn without_server_name(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicit server-name override.

pub fn unset_server_name(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicit server-name override.

pub fn maybe_with_store_chain( self, value: Option<&'a TlsStoreServerCertChain>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether to retain the peer certificate chain.

pub fn maybe_set_store_chain( &mut self, value: Option<&'a TlsStoreServerCertChain>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether to retain the peer certificate chain.

pub fn with_store_chain( self, value: &'a TlsStoreServerCertChain, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether to retain the peer certificate chain.

pub fn set_store_chain( &mut self, value: &'a TlsStoreServerCertChain, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether to retain the peer certificate chain.

pub fn without_store_chain(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether to retain the peer certificate chain.

pub fn unset_store_chain(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether to retain the peer certificate chain.

pub fn maybe_with_client_auth( self, value: Option<&'a TlsClientAuth>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Client credentials, compared by certificate chain and private key contents.

pub fn maybe_set_client_auth( &mut self, value: Option<&'a TlsClientAuth>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Client credentials, compared by certificate chain and private key contents.

pub fn with_client_auth(self, value: &'a TlsClientAuth) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Client credentials, compared by certificate chain and private key contents.

pub fn set_client_auth( &mut self, value: &'a TlsClientAuth, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Client credentials, compared by certificate chain and private key contents.

pub fn without_client_auth(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Client credentials, compared by certificate chain and private key contents.

pub fn unset_client_auth(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Client credentials, compared by certificate chain and private key contents.

pub fn maybe_with_server_cert_pins( self, value: Option<&'a TlsServerCertPins>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server certificate pin policy.

pub fn maybe_set_server_cert_pins( &mut self, value: Option<&'a TlsServerCertPins>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server certificate pin policy.

pub fn with_server_cert_pins( self, value: &'a TlsServerCertPins, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server certificate pin policy.

pub fn set_server_cert_pins( &mut self, value: &'a TlsServerCertPins, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server certificate pin policy.

pub fn without_server_cert_pins(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server certificate pin policy.

pub fn unset_server_cert_pins(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server certificate pin policy.

pub fn maybe_with_server_trust( self, value: Option<&'a TlsServerTrust>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server trust policy.

pub fn maybe_set_server_trust( &mut self, value: Option<&'a TlsServerTrust>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server trust policy.

pub fn with_server_trust( self, value: &'a TlsServerTrust, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server trust policy.

pub fn set_server_trust( &mut self, value: &'a TlsServerTrust, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server trust policy.

pub fn without_server_trust(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server trust policy.

pub fn unset_server_trust(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Cached server trust policy.

pub fn maybe_with_cipher_suites( self, value: Option<&'a [CipherSuite]>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered cipher suite offer.

pub fn maybe_set_cipher_suites( &mut self, value: Option<&'a [CipherSuite]>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered cipher suite offer.

pub fn with_cipher_suites( self, value: &'a [CipherSuite], ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered cipher suite offer.

pub fn set_cipher_suites( &mut self, value: &'a [CipherSuite], ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered cipher suite offer.

pub fn without_cipher_suites(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered cipher suite offer.

pub fn unset_cipher_suites(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered cipher suite offer.

pub fn maybe_with_supported_groups( self, value: Option<&'a [SupportedGroup]>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported group offer.

pub fn maybe_set_supported_groups( &mut self, value: Option<&'a [SupportedGroup]>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported group offer.

pub fn with_supported_groups( self, value: &'a [SupportedGroup], ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported group offer.

pub fn set_supported_groups( &mut self, value: &'a [SupportedGroup], ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported group offer.

pub fn without_supported_groups(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported group offer.

pub fn unset_supported_groups(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered supported group offer.

pub fn maybe_with_signature_schemes( self, value: Option<&'a [SignatureScheme]>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered signature scheme offer.

pub fn maybe_set_signature_schemes( &mut self, value: Option<&'a [SignatureScheme]>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered signature scheme offer.

pub fn with_signature_schemes( self, value: &'a [SignatureScheme], ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered signature scheme offer.

pub fn set_signature_schemes( &mut self, value: &'a [SignatureScheme], ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered signature scheme offer.

pub fn without_signature_schemes(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered signature scheme offer.

pub fn unset_signature_schemes(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered signature scheme offer.

pub fn maybe_with_grease(self, value: Option<bool>) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether GREASE values are offered.

pub fn maybe_set_grease( &mut self, value: Option<bool>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether GREASE values are offered.

pub fn with_grease(self, value: bool) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether GREASE values are offered.

pub fn set_grease(&mut self, value: bool) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether GREASE values are offered.

pub fn without_grease(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether GREASE values are offered.

pub fn unset_grease(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether GREASE values are offered.

pub fn maybe_with_extension_order( self, value: Option<&'a [ExtensionId]>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered extension identifiers.

pub fn maybe_set_extension_order( &mut self, value: Option<&'a [ExtensionId]>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered extension identifiers.

pub fn with_extension_order( self, value: &'a [ExtensionId], ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered extension identifiers.

pub fn set_extension_order( &mut self, value: &'a [ExtensionId], ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered extension identifiers.

pub fn without_extension_order(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered extension identifiers.

pub fn unset_extension_order(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered extension identifiers.

pub fn maybe_with_cert_compression( self, value: Option<&'a [CertificateCompressionAlgorithm]>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered certificate compression algorithms.

pub fn maybe_set_cert_compression( &mut self, value: Option<&'a [CertificateCompressionAlgorithm]>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered certificate compression algorithms.

pub fn with_cert_compression( self, value: &'a [CertificateCompressionAlgorithm], ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered certificate compression algorithms.

pub fn set_cert_compression( &mut self, value: &'a [CertificateCompressionAlgorithm], ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered certificate compression algorithms.

pub fn without_cert_compression(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered certificate compression algorithms.

pub fn unset_cert_compression(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered certificate compression algorithms.

pub fn maybe_with_delegated_credentials( self, value: Option<&'a [SignatureScheme]>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered delegated credential signature schemes.

pub fn maybe_set_delegated_credentials( &mut self, value: Option<&'a [SignatureScheme]>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered delegated credential signature schemes.

pub fn with_delegated_credentials( self, value: &'a [SignatureScheme], ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered delegated credential signature schemes.

pub fn set_delegated_credentials( &mut self, value: &'a [SignatureScheme], ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered delegated credential signature schemes.

pub fn without_delegated_credentials(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered delegated credential signature schemes.

pub fn unset_delegated_credentials(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Ordered delegated credential signature schemes.

pub fn maybe_with_record_size_limit( self, value: Option<u16>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Advertised record size limit.

pub fn maybe_set_record_size_limit( &mut self, value: Option<u16>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Advertised record size limit.

pub fn with_record_size_limit(self, value: u16) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Advertised record size limit.

pub fn set_record_size_limit(&mut self, value: u16) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Advertised record size limit.

pub fn without_record_size_limit(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Advertised record size limit.

pub fn unset_record_size_limit(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Advertised record size limit.

pub fn maybe_with_encrypted_client_hello( self, value: Option<bool>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether Encrypted ClientHello is enabled.

pub fn maybe_set_encrypted_client_hello( &mut self, value: Option<bool>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether Encrypted ClientHello is enabled.

pub fn with_encrypted_client_hello(self, value: bool) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether Encrypted ClientHello is enabled.

pub fn set_encrypted_client_hello( &mut self, value: bool, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether Encrypted ClientHello is enabled.

pub fn without_encrypted_client_hello(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether Encrypted ClientHello is enabled.

pub fn unset_encrypted_client_hello(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether Encrypted ClientHello is enabled.

pub fn maybe_with_ocsp_stapling( self, value: Option<bool>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether OCSP stapling is requested.

pub fn maybe_set_ocsp_stapling( &mut self, value: Option<bool>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether OCSP stapling is requested.

pub fn with_ocsp_stapling(self, value: bool) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether OCSP stapling is requested.

pub fn set_ocsp_stapling(&mut self, value: bool) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether OCSP stapling is requested.

pub fn without_ocsp_stapling(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether OCSP stapling is requested.

pub fn unset_ocsp_stapling(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether OCSP stapling is requested.

pub fn maybe_with_signed_cert_timestamps( self, value: Option<bool>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether signed certificate timestamps are requested.

pub fn maybe_set_signed_cert_timestamps( &mut self, value: Option<bool>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether signed certificate timestamps are requested.

pub fn with_signed_cert_timestamps(self, value: bool) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether signed certificate timestamps are requested.

pub fn set_signed_cert_timestamps( &mut self, value: bool, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether signed certificate timestamps are requested.

pub fn without_signed_cert_timestamps(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether signed certificate timestamps are requested.

pub fn unset_signed_cert_timestamps(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Whether signed certificate timestamps are requested.

pub fn maybe_with_min_version( self, value: Option<ProtocolVersion>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Minimum permitted TLS version.

pub fn maybe_set_min_version( &mut self, value: Option<ProtocolVersion>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Minimum permitted TLS version.

pub fn with_min_version(self, value: ProtocolVersion) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Minimum permitted TLS version.

pub fn set_min_version( &mut self, value: ProtocolVersion, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Minimum permitted TLS version.

pub fn without_min_version(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Minimum permitted TLS version.

pub fn unset_min_version(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Minimum permitted TLS version.

pub fn maybe_with_max_version( self, value: Option<ProtocolVersion>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Maximum permitted TLS version.

pub fn maybe_set_max_version( &mut self, value: Option<ProtocolVersion>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Maximum permitted TLS version.

pub fn with_max_version(self, value: ProtocolVersion) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Maximum permitted TLS version.

pub fn set_max_version( &mut self, value: ProtocolVersion, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Maximum permitted TLS version.

pub fn without_max_version(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Maximum permitted TLS version.

pub fn unset_max_version(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Maximum permitted TLS version.

pub fn with_alps( self, protocols: &'a [ApplicationProtocol], new_codepoint: bool, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Offer Application-Layer Protocol Settings for these ordered protocols.

new_codepoint selects the newer ALPS extension codepoint.

pub fn set_alps( &mut self, protocols: &'a [ApplicationProtocol], new_codepoint: bool, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Offer Application-Layer Protocol Settings for these ordered protocols.

new_codepoint selects the newer ALPS extension codepoint.

pub fn with_no_alps(self) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Remove the Application-Layer Protocol Settings override.

pub fn set_no_alps(&mut self) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Remove the Application-Layer Protocol Settings override.

pub fn with_opaque_override(self, present: bool) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicitly disable reuse for policy that can change within one instance.

Components with stable identities should use Self::with_component.

pub fn set_opaque_override( &mut self, present: bool, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Explicitly disable reuse for policy that can change within one instance.

Components with stable identities should use Self::with_component.

pub fn with_component( self, value: &impl TlsPoolComponent, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Capture a custom component’s owned policy identity.

Components are keyed by type, independently of setter order. Only the identity is retained; the component needs no general-purpose Hash implementation. Later policy changes cannot mutate this snapshot.

pub fn set_component( &mut self, value: &impl TlsPoolComponent, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Capture a custom component’s owned policy identity.

Components are keyed by type, independently of setter order. Only the identity is retained; the component needs no general-purpose Hash implementation. Later policy changes cannot mutate this snapshot.

pub fn with_shared_instance( self, value: &Arc<impl Any + Send + Sync>, ) -> TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Identify a component by its existing shared allocation.

Cloned Arcs match; separate allocations differ even for equal values. Retaining the owner prevents address reuse without allocating an identity snapshot. The final component list still uses shared storage.

Policy must remain fixed for the instance’s lifetime. Use Self::with_component for semantic or revision-based identities. Both setters replace the previous identity for the same component type; an instance identity never equals a semantic identity.

pub fn set_shared_instance( &mut self, value: &Arc<impl Any + Send + Sync>, ) -> &mut TlsPoolIdBuilder<'a>

Available on crate feature boring only.

Identify a component by its existing shared allocation.

Cloned Arcs match; separate allocations differ even for equal values. Retaining the owner prevents address reuse without allocating an identity snapshot. The final component list still uses shared storage.

Policy must remain fixed for the instance’s lifetime. Use Self::with_component for semantic or revision-based identities. Both setters replace the previous identity for the same component type; an instance identity never equals a semantic identity.

pub fn build(self) -> Option<TlsPoolId>

Available on crate feature boring only.

Finish the identity, returning None when no overrides are present.

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for TlsPoolIdBuilder<'a>

§

impl<'a> !UnwindSafe for TlsPoolIdBuilder<'a>

§

impl<'a> Freeze for TlsPoolIdBuilder<'a>

§

impl<'a> Send for TlsPoolIdBuilder<'a>

§

impl<'a> Sync for TlsPoolIdBuilder<'a>

§

impl<'a> Unpin for TlsPoolIdBuilder<'a>

§

impl<'a> UnsafeUnpin for TlsPoolIdBuilder<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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

§

fn into_request(self) -> Request<T>

Wrap the input message T in a rama_grpc::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
§

impl<T, U> RamaFrom<T> for U
where U: From<T>,

§

fn rama_from(value: T) -> U

§

impl<T, U, CrateMarker> RamaInto<U, CrateMarker> for T
where U: RamaFrom<T, CrateMarker>,

§

fn rama_into(self) -> U

§

impl<T, U> RamaTryFrom<T> for U
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

§

fn rama_try_from(value: T) -> Result<U, <U as RamaTryFrom<T>>::Error>

§

impl<T, U, CrateMarker> RamaTryInto<U, CrateMarker> for T
where U: RamaTryFrom<T, CrateMarker>,

§

type Error = <U as RamaTryFrom<T, CrateMarker>>::Error

§

fn rama_try_into(self) -> Result<U, <U as RamaTryFrom<T, CrateMarker>>::Error>

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<V, F> ValueFormatter<&V> for F
where F: ValueFormatter<V> + ?Sized, V: ?Sized,

§

const SHAPE: FieldShape<'static>

Available on non-metrique_require_explicit_impls only.
The shape of values produced by this formatter. Read more
§

fn format_value(writer: impl ValueWriter, value: &&V)

Write value to writer
§

impl<V, F> ValueFormatter<Arc<V>> for F
where F: ValueFormatter<V> + ?Sized, V: ?Sized,

§

const SHAPE: FieldShape<'static>

Available on non-metrique_require_explicit_impls only.
The shape of values produced by this formatter. Read more
§

fn format_value(writer: impl ValueWriter, value: &Arc<V>)

Write value to writer
§

impl<V, F> ValueFormatter<Box<V>> for F
where F: ValueFormatter<V> + ?Sized, V: ?Sized,

§

const SHAPE: FieldShape<'static>

Available on non-metrique_require_explicit_impls only.
The shape of values produced by this formatter. Read more
§

fn format_value(writer: impl ValueWriter, value: &Box<V>)

Write value to writer
§

impl<V, F> ValueFormatter<Cow<'_, V>> for F
where V: ToOwned + ?Sized, F: ValueFormatter<V> + ?Sized,

§

const SHAPE: FieldShape<'static>

Available on non-metrique_require_explicit_impls only.
The shape of values produced by this formatter. Read more
§

fn format_value(writer: impl ValueWriter, value: &Cow<'_, V>)

Write value to writer
§

impl<V, F> ValueFormatter<Option<V>> for F
where F: ValueFormatter<V> + ?Sized,

§

const SHAPE: FieldShape<'static>

Available on non-metrique_require_explicit_impls only.
The shape of values produced by this formatter. Read more
§

fn format_value(writer: impl ValueWriter, value: &Option<V>)

Write value to writer
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more