pub enum HstsOrigin {
Explicit,
InheritedFromListenerDefault,
}Expand description
Origin of the per-frontend HSTS policy carried by an
HttpFrontend when the router materialises it into a
Frontend. Tracked separately because the resolved
HttpFrontend.hsts field is the same shape regardless of how it
was filled in — the inheritance bit lets later listener-default
patches refresh inheriting frontends without disturbing explicit
per-frontend overrides.
Variants§
Explicit
front.hsts came from the per-frontend configuration directly
(operator wrote [clusters.<id>.frontends.hsts] in TOML or
passed --hsts-* on the CLI). Listener-default patches do NOT
refresh this entry.
InheritedFromListenerDefault
front.hsts was filled in by add_https_frontend from the
listener-default HttpsListenerConfig.hsts. A future
UpdateHttpsListenerConfig.hsts patch will refresh this entry
via Router::refresh_inheriting_hsts.
Trait Implementations§
Source§impl Clone for HstsOrigin
impl Clone for HstsOrigin
Source§fn clone(&self) -> HstsOrigin
fn clone(&self) -> HstsOrigin
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 HstsOrigin
Source§impl Debug for HstsOrigin
impl Debug for HstsOrigin
impl Eq for HstsOrigin
Source§impl PartialEq for HstsOrigin
impl PartialEq for HstsOrigin
Source§fn eq(&self, other: &HstsOrigin) -> bool
fn eq(&self, other: &HstsOrigin) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HstsOrigin
Auto Trait Implementations§
impl Freeze for HstsOrigin
impl RefUnwindSafe for HstsOrigin
impl Send for HstsOrigin
impl Sync for HstsOrigin
impl Unpin for HstsOrigin
impl UnsafeUnpin for HstsOrigin
impl UnwindSafe for HstsOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.