pub struct FlowKey {
pub src: SocketAddr,
}Expand description
The virtual flow key extracted from a client datagram. The default
SourceTupleExtractor keys on the real (pre-NAT) client source address;
with_port distinguishes the 2-tuple (source IP only) from the 4-tuple
(source IP + port). Other extractors may key differently — the trait is the
only seam — but the 4-tuple impl is the only one in scope.
Fields§
§src: SocketAddrThe client source address. When the extractor keys on source IP only,
the port is normalised to 0.
Implementations§
Trait Implementations§
impl Copy for FlowKey
impl Eq for FlowKey
impl StructuralPartialEq for FlowKey
Auto Trait Implementations§
impl Freeze for FlowKey
impl RefUnwindSafe for FlowKey
impl Send for FlowKey
impl Sync for FlowKey
impl Unpin for FlowKey
impl UnsafeUnpin for FlowKey
impl UnwindSafe for FlowKey
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§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.