pub enum FakeBodyMode {
Empty,
Random {
min_length: usize,
max_length: usize,
service: bool,
},
Constant {
packet_length: usize,
},
}Expand description
Fake body generation mode.
Each mode defines how fake body content is generated to pad packets.
Uses Vec
Variants§
Empty
Empty: no fake body added.
Random
Random: random bytes of random length.
Constant
Constant: fixed content across all packets.
Implementations§
Trait Implementations§
Source§impl Clone for FakeBodyMode
impl Clone for FakeBodyMode
Source§fn clone(&self) -> FakeBodyMode
fn clone(&self) -> FakeBodyMode
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 moreAuto Trait Implementations§
impl Freeze for FakeBodyMode
impl RefUnwindSafe for FakeBodyMode
impl Send for FakeBodyMode
impl Sync for FakeBodyMode
impl Unpin for FakeBodyMode
impl UnsafeUnpin for FakeBodyMode
impl UnwindSafe for FakeBodyMode
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