pub struct ResolvedClient {
pub ip: IpAddr,
pub source: ClientIpSource,
}Available on crate feature
tower only.Expand description
A successfully resolved client identity.
Fields§
§ip: IpAddrThe client IP. v4-mapped IPv6 is normalized to IPv4.
source: ClientIpSourceWhether this came from the socket or the forwarded header.
Trait Implementations§
Source§impl Clone for ResolvedClient
impl Clone for ResolvedClient
impl Copy for ResolvedClient
Source§impl Debug for ResolvedClient
impl Debug for ResolvedClient
impl Eq for ResolvedClient
Source§impl PartialEq for ResolvedClient
impl PartialEq for ResolvedClient
impl StructuralPartialEq for ResolvedClient
Auto Trait Implementations§
impl Freeze for ResolvedClient
impl RefUnwindSafe for ResolvedClient
impl Send for ResolvedClient
impl Sync for ResolvedClient
impl Unpin for ResolvedClient
impl UnsafeUnpin for ResolvedClient
impl UnwindSafe for ResolvedClient
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