pub enum FieldType<L> {
Random,
Constant {
value: L,
},
Volatile {
value: L,
change_probability: f64,
},
Switching {
value: L,
next_switch: u128,
switch_timeout: u64,
},
Incremental {
value: L,
},
}Expand description
Field type for fake header generation.
Each field type defines how a portion of the header is generated.
Uses Vec
Variants§
Random
Random bytes on each packet.
Constant
Constant bytes across all packets.
Fields
§
value: LVolatile
Volatile: changes value randomly at random intervals.
Switching
Switching: toggles between two values.
Incremental
Incremental: counter that increases by 1 each packet.
Fields
§
value: LImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<L> Freeze for FieldType<L>where
L: Freeze,
impl<L> RefUnwindSafe for FieldType<L>where
L: RefUnwindSafe,
impl<L> Send for FieldType<L>where
L: Send,
impl<L> Sync for FieldType<L>where
L: Sync,
impl<L> Unpin for FieldType<L>where
L: Unpin,
impl<L> UnsafeUnpin for FieldType<L>where
L: UnsafeUnpin,
impl<L> UnwindSafe for FieldType<L>where
L: 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