Enum TlsClientSni
pub enum TlsClientSni {
Auto,
IncludeIp,
Verbatim,
Disabled,
}tls only.Expand description
Which server identities are sent in the ClientHello server_name extension. Certificate verification always uses the configured server identity.
Variants§
Auto
Send DNS identities only and without a trailing dot, as RFC 6066 section 3 describes.
IncludeIp
Also send IP identities as dotted IPv4 or bare IPv6 literals; unsupported by rustls.
Verbatim
Send the identity exactly as configured, a trailing dot and IP literals included; unsupported by rustls. A name with and without its trailing dot is one server identity, so a pooled connection or cached session may stem from the other spelling.
Disabled
Omit SNI, including for DNS identities.
Implementations§
§impl TlsClientSni
impl TlsClientSni
pub fn mirroring(name: Option<&ServerName>) -> TlsClientSni
Available on crate feature boring only.
pub fn mirroring(name: Option<&ServerName>) -> TlsClientSni
boring only.The policy that names a server the way a peer’s ClientHello did.
pub fn wire_name(self, name: &ServerName) -> Option<Cow<'_, str>>
Available on crate feature boring only.
pub fn wire_name(self, name: &ServerName) -> Option<Cow<'_, str>>
boring only.The text this policy sends as SNI for the configured server identity, if any.
pub fn sends(self, name: &ServerName) -> bool
Available on crate feature boring only.
pub fn sends(self, name: &ServerName) -> bool
boring only.Whether this policy sends the canonical identity as SNI.
Trait Implementations§
§impl Clone for TlsClientSni
impl Clone for TlsClientSni
§fn clone(&self) -> TlsClientSni
fn clone(&self) -> TlsClientSni
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TlsClientSni
§impl Debug for TlsClientSni
impl Debug for TlsClientSni
§impl Default for TlsClientSni
impl Default for TlsClientSni
§fn default() -> TlsClientSni
fn default() -> TlsClientSni
impl Eq for TlsClientSni
§impl Extension for TlsClientSni
impl Extension for TlsClientSni
§fn scope() -> ExtensionScope
fn scope() -> ExtensionScope
Extensions chain a lookup of this type resolves,
ExtensionScope::Flow unless the type says otherwise.§impl Hash for TlsClientSni
impl Hash for TlsClientSni
§impl PartialEq for TlsClientSni
impl PartialEq for TlsClientSni
impl StructuralPartialEq for TlsClientSni
impl TlsExtension for TlsClientSni
§impl TlsPoolComponent for TlsClientSni
impl TlsPoolComponent for TlsClientSni
§type Identity = TlsClientSni
type Identity = TlsClientSni
§fn pool_component_identity(&self) -> TlsClientSni
fn pool_component_identity(&self) -> TlsClientSni
Auto Trait Implementations§
impl Forget for TlsClientSni
impl Freeze for TlsClientSni
impl Move for TlsClientSni
impl RefUnwindSafe for TlsClientSni
impl Send for TlsClientSni
impl Sync for TlsClientSni
impl Unpin for TlsClientSni
impl UnsafeUnpin for TlsClientSni
impl UnwindSafe for TlsClientSni
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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