pub struct SourceTupleExtractor;Expand description
The in-scope flow-key extractor: keys on the real client source address,
IP and port. The cluster’s affinity_with_port knob is not read here: it
shapes the backend-selection hash only (UdpManager’s affinity_hash).
Trait Implementations§
Source§impl Clone for SourceTupleExtractor
impl Clone for SourceTupleExtractor
impl Copy for SourceTupleExtractor
Source§impl Debug for SourceTupleExtractor
impl Debug for SourceTupleExtractor
Source§impl Default for SourceTupleExtractor
impl Default for SourceTupleExtractor
Source§impl FlowKeyExtractor for SourceTupleExtractor
impl FlowKeyExtractor for SourceTupleExtractor
Source§fn flow_key(
&self,
src: SocketAddr,
payload: &[u8],
_cfg: &ClusterConfig,
) -> Option<FlowKey>
fn flow_key( &self, src: SocketAddr, payload: &[u8], _cfg: &ClusterConfig, ) -> Option<FlowKey>
Compute the flow key for a datagram from
src. Returns None to reject
the datagram (the manager then emits Drop(Invalid) and allocates
nothing). cfg is the listener’s active cluster config.Auto Trait Implementations§
impl Freeze for SourceTupleExtractor
impl RefUnwindSafe for SourceTupleExtractor
impl Send for SourceTupleExtractor
impl Sync for SourceTupleExtractor
impl Unpin for SourceTupleExtractor
impl UnsafeUnpin for SourceTupleExtractor
impl UnwindSafe for SourceTupleExtractor
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