pub struct FlowLabelKey<K> {
pub inner: K,
pub label: u32,
}Available on crate feature
extractors only.Expand description
Wraps an inner key with a 20-bit IPv6 flow label.
Fields§
§inner: KThe inner extractor’s key.
label: u32The IPv6 flow label. Lower 20 bits significant; IPv4 traffic
has label == 0.
Trait Implementations§
Source§impl<K: Clone> Clone for FlowLabelKey<K>
impl<K: Clone> Clone for FlowLabelKey<K>
Source§fn clone(&self) -> FlowLabelKey<K>
fn clone(&self) -> FlowLabelKey<K>
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<K: Copy> Copy for FlowLabelKey<K>
Source§impl<K: Debug> Debug for FlowLabelKey<K>
impl<K: Debug> Debug for FlowLabelKey<K>
Source§impl<'de, K> Deserialize<'de> for FlowLabelKey<K>where
K: Deserialize<'de>,
impl<'de, K> Deserialize<'de> for FlowLabelKey<K>where
K: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<K: Eq> Eq for FlowLabelKey<K>
Source§impl<K: Hash> Hash for FlowLabelKey<K>
impl<K: Hash> Hash for FlowLabelKey<K>
Source§impl<K: PartialEq> PartialEq for FlowLabelKey<K>
impl<K: PartialEq> PartialEq for FlowLabelKey<K>
Source§fn eq(&self, other: &FlowLabelKey<K>) -> bool
fn eq(&self, other: &FlowLabelKey<K>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<K> Serialize for FlowLabelKey<K>where
K: Serialize,
impl<K> Serialize for FlowLabelKey<K>where
K: Serialize,
impl<K> StructuralPartialEq for FlowLabelKey<K>
Auto Trait Implementations§
impl<K> Freeze for FlowLabelKey<K>where
K: Freeze,
impl<K> RefUnwindSafe for FlowLabelKey<K>where
K: RefUnwindSafe,
impl<K> Send for FlowLabelKey<K>where
K: Send,
impl<K> Sync for FlowLabelKey<K>where
K: Sync,
impl<K> Unpin for FlowLabelKey<K>where
K: Unpin,
impl<K> UnsafeUnpin for FlowLabelKey<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for FlowLabelKey<K>where
K: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.