pub struct ClientResolution {
pub extraction: ClientIpExtraction,
pub ip: Option<IpAddr>,
pub reject: bool,
}Expand description
One request’s client resolution: the identity the pipeline runs under
and whether fail_secure rejects the request outright.
Fields§
§extraction: ClientIpExtractionThe extraction behind the identity (source, spoof flag, warnings).
ip: Option<IpAddr>The identity as an address; None for the unknown identity (the
pipeline then runs unattributed, the reference’s "unknown" run).
reject: boolA peer-less request that resolves to unknown under fail_secure:
answer 403 UNRESOLVABLE_CLIENT_ADDRESS_MESSAGE before any check
(the reference handle_passthrough).
Trait Implementations§
Source§impl Clone for ClientResolution
impl Clone for ClientResolution
Source§impl Debug for ClientResolution
impl Debug for ClientResolution
impl Eq for ClientResolution
Source§impl PartialEq for ClientResolution
impl PartialEq for ClientResolution
impl StructuralPartialEq for ClientResolution
Auto Trait Implementations§
impl Freeze for ClientResolution
impl RefUnwindSafe for ClientResolution
impl Send for ClientResolution
impl Sync for ClientResolution
impl Unpin for ClientResolution
impl UnsafeUnpin for ClientResolution
impl UnwindSafe for ClientResolution
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.