Enum faucet_server::client::load_balancing::IpExtractor
source · pub enum IpExtractor {
ClientAddr,
XForwardedFor,
XRealIp,
}Variants§
Implementations§
source§impl IpExtractor
impl IpExtractor
pub fn extract<B>( self, req: &Request<B>, client_addr: SocketAddr ) -> FaucetResult<IpAddr>
Trait Implementations§
source§impl Clone for IpExtractor
impl Clone for IpExtractor
source§fn clone(&self) -> IpExtractor
fn clone(&self) -> IpExtractor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for IpExtractor
impl Debug for IpExtractor
impl Copy for IpExtractor
Auto Trait Implementations§
impl RefUnwindSafe for IpExtractor
impl Send for IpExtractor
impl Sync for IpExtractor
impl Unpin for IpExtractor
impl UnwindSafe for IpExtractor
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