pub enum HostnameSource<'a> {
Sni(&'a str),
CacheOnly,
Deferred,
}Expand description
Source of the hostname used to match Domain / DomainSuffix
rules during an egress evaluation.
Variants§
Sni(&'a str)
Hostname from a TLS ClientHello, canonicalized.
CacheOnly
No SNI — match Domain rules via the resolved-hostname cache.
Deferred
SYN time, before SNI is known. A matching Domain /
DomainSuffix rule short-circuits to
EgressEvaluation::DeferUntilHostname.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for HostnameSource<'a>
impl<'a> Clone for HostnameSource<'a>
Source§fn clone(&self) -> HostnameSource<'a>
fn clone(&self) -> HostnameSource<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for HostnameSource<'a>
impl<'a> Debug for HostnameSource<'a>
impl<'a> Copy for HostnameSource<'a>
Auto Trait Implementations§
impl<'a> Freeze for HostnameSource<'a>
impl<'a> RefUnwindSafe for HostnameSource<'a>
impl<'a> Send for HostnameSource<'a>
impl<'a> Sync for HostnameSource<'a>
impl<'a> Unpin for HostnameSource<'a>
impl<'a> UnsafeUnpin for HostnameSource<'a>
impl<'a> UnwindSafe for HostnameSource<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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