pub enum ClientIp {
Socket,
Header(String),
}Expand description
Where the client IP comes from.
Variants§
Socket
The socket address the integration puts in request extensions (default).
Header(String)
A header set by a proxy you trust, e.g. fly-client-ip. Take the first value.
Trait Implementations§
impl Eq for ClientIp
impl StructuralPartialEq for ClientIp
Auto Trait Implementations§
impl Forget for ClientIp
impl Freeze for ClientIp
impl Move for ClientIp
impl RefUnwindSafe for ClientIp
impl Send for ClientIp
impl Sync for ClientIp
impl Unpin for ClientIp
impl UnsafeUnpin for ClientIp
impl UnwindSafe for ClientIp
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