pub struct FlowId(pub u64);Expand description
Newtype wrapping a u64 flow identifier for type-safe flow tracking.
§Examples
use soth_mitm::FlowId;
let id = FlowId(42);
assert_eq!(id.as_u64(), 42);
assert_eq!(format!("{id}"), "42");Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Ord for FlowId
impl Ord for FlowId
Source§impl PartialOrd for FlowId
impl PartialOrd for FlowId
impl Copy for FlowId
impl Eq for FlowId
impl StructuralPartialEq for FlowId
Auto Trait Implementations§
impl Freeze for FlowId
impl RefUnwindSafe for FlowId
impl Send for FlowId
impl Sync for FlowId
impl Unpin for FlowId
impl UnsafeUnpin for FlowId
impl UnwindSafe for FlowId
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> Comparable<K> for Q
impl<Q, K> Comparable<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.