pub enum ClientIpSource {
PeerSocket,
ForwardedHeader,
}Available on crate feature
tower only.Expand description
Where a resolved client identity came from.
Variants§
PeerSocket
The direct peer’s socket address (header ignored or used as fallback).
ForwardedHeader
An entry from the forwarded header, after the trust walk.
Trait Implementations§
Source§impl Clone for ClientIpSource
impl Clone for ClientIpSource
Source§fn clone(&self) -> ClientIpSource
fn clone(&self) -> ClientIpSource
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 moreimpl Copy for ClientIpSource
Source§impl Debug for ClientIpSource
impl Debug for ClientIpSource
impl Eq for ClientIpSource
Source§impl PartialEq for ClientIpSource
impl PartialEq for ClientIpSource
impl StructuralPartialEq for ClientIpSource
Auto Trait Implementations§
impl Freeze for ClientIpSource
impl RefUnwindSafe for ClientIpSource
impl Send for ClientIpSource
impl Sync for ClientIpSource
impl Unpin for ClientIpSource
impl UnsafeUnpin for ClientIpSource
impl UnwindSafe for ClientIpSource
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