/// Extract the remote IP address string from an HTTP request's headers.
Extract the remote IP address string from an HTTP request's headers.
Extract the remote IP address string from an HTTP request ' s headers .
fn extract_ip_addr(req: &HttpRequest) -> Result<String, TelescopeError> {
    req.connection_info()
        .realip_remote_addr()
        .map(str::to_string)
        .ok_or(TelescopeError::IpExtractionError)
}
fn extract_ip_addr ( req : & HttpRequest ) -> Result < String , TelescopeError > { req . connection_info ( ) . realip_remote_addr ( ) . map ( str :: to_string ) . ok_or ( TelescopeError :: IpExtractionError ) }
Extract the remote IP address string from an HTTP request's headers.
Extract the remote IP address string from an HTTP request ' s headers .
req
&HttpRequest