pub struct ChainWarnings {
pub chain_too_short: bool,
pub depth_overcounts: Option<usize>,
pub selected_entry_trusted: bool,
}Expand description
The once-only warnings the reference logs, surfaced as data (the engine has no logger; the caller logs and de-duplicates).
Fields§
§chain_too_short: boolThe chain had fewer entries than trusted_proxy_depth (the
reference _warn_forwarded_header_chain_too_short).
depth_overcounts: Option<usize>The declared depth over-counts the real hops: Some(count) of
right-side entries are not on the trusted list (the reference
_warn_forwarded_header_depth_overcounts_hops).
selected_entry_trusted: boolThe selected entry is itself a trusted proxy (the reference
_warn_forwarded_header_selected_entry_trusted_proxy).
Trait Implementations§
Source§impl Clone for ChainWarnings
impl Clone for ChainWarnings
impl Copy for ChainWarnings
Source§impl Debug for ChainWarnings
impl Debug for ChainWarnings
Source§impl Default for ChainWarnings
impl Default for ChainWarnings
impl Eq for ChainWarnings
Source§impl PartialEq for ChainWarnings
impl PartialEq for ChainWarnings
impl StructuralPartialEq for ChainWarnings
Auto Trait Implementations§
impl Freeze for ChainWarnings
impl RefUnwindSafe for ChainWarnings
impl Send for ChainWarnings
impl Sync for ChainWarnings
impl Unpin for ChainWarnings
impl UnsafeUnpin for ChainWarnings
impl UnwindSafe for ChainWarnings
Blanket Implementations§
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
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
Compare self to
key and return true if they are equal.