#[non_exhaustive]pub struct FlowLabel<E> {
pub extractor: E,
}Available on crate feature
extractors only.Expand description
Augment extractor’s key with the inner packet’s IPv6 flow label.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.extractor: EThe wrapped extractor.
Implementations§
Trait Implementations§
impl<E: Copy> Copy for FlowLabel<E>
Source§impl<E> FlowExtractor for FlowLabel<E>
impl<E> FlowExtractor for FlowLabel<E>
Source§type Key = FlowLabelKey<<E as FlowExtractor>::Key>
type Key = FlowLabelKey<<E as FlowExtractor>::Key>
The flow key. Equality + hashability identify the flow.
Source§fn extract(
&self,
view: PacketView<'_>,
) -> Option<Extracted<FlowLabelKey<E::Key>>>
fn extract( &self, view: PacketView<'_>, ) -> Option<Extracted<FlowLabelKey<E::Key>>>
Extract a flow descriptor from
view. Read moreAuto Trait Implementations§
impl<E> Freeze for FlowLabel<E>where
E: Freeze,
impl<E> RefUnwindSafe for FlowLabel<E>where
E: RefUnwindSafe,
impl<E> Send for FlowLabel<E>where
E: Send,
impl<E> Sync for FlowLabel<E>where
E: Sync,
impl<E> Unpin for FlowLabel<E>where
E: Unpin,
impl<E> UnsafeUnpin for FlowLabel<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for FlowLabel<E>where
E: UnwindSafe,
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