pub struct IpKeyExtractor;Expand description
Extract an IP client key from only the socket peer.
Use this extractor for direct connections or whenever the transport peer itself should identify the caller. It never reads forwarding Headers. Choose one built-in IP extractor for the application’s network topology; do not layer this extractor with another one.
Implementations§
Trait Implementations§
Source§impl Clone for IpKeyExtractor
impl Clone for IpKeyExtractor
Source§fn clone(&self) -> IpKeyExtractor
fn clone(&self) -> IpKeyExtractor
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 IpKeyExtractor
Source§impl Debug for IpKeyExtractor
impl Debug for IpKeyExtractor
Source§impl Default for IpKeyExtractor
impl Default for IpKeyExtractor
Source§fn default() -> IpKeyExtractor
fn default() -> IpKeyExtractor
Returns the “default value” for a type. Read more
impl Eq for IpKeyExtractor
Source§impl KeyExtractor for IpKeyExtractor
impl KeyExtractor for IpKeyExtractor
Source§impl PartialEq for IpKeyExtractor
impl PartialEq for IpKeyExtractor
impl StructuralPartialEq for IpKeyExtractor
Auto Trait Implementations§
impl Freeze for IpKeyExtractor
impl RefUnwindSafe for IpKeyExtractor
impl Send for IpKeyExtractor
impl Sync for IpKeyExtractor
impl Unpin for IpKeyExtractor
impl UnsafeUnpin for IpKeyExtractor
impl UnwindSafe for IpKeyExtractor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.