Struct butterfly_fuzz::PacketDuplicateMutator
source · [−]pub struct PacketDuplicateMutator<P> where
P: Clone, { /* private fields */ }Expand description
A mutator that duplicates a single, random packet.
It respects an upper bound on the number of packets passed as an argument to the constructor.
Example
// Make sure that we never exceed 16 packets in an input
let mutator = PacketDuplicateMutator::new(16);Implementations
Trait Implementations
sourceimpl<I, S, P> Mutator<I, S> for PacketDuplicateMutator<P> where
P: Clone,
I: Input + HasLen + HasPackets<P>,
S: HasRand,
impl<I, S, P> Mutator<I, S> for PacketDuplicateMutator<P> where
P: Clone,
I: Input + HasLen + HasPackets<P>,
S: HasRand,
Auto Trait Implementations
impl<P> RefUnwindSafe for PacketDuplicateMutator<P> where
P: RefUnwindSafe,
impl<P> Send for PacketDuplicateMutator<P> where
P: Send,
impl<P> Sync for PacketDuplicateMutator<P> where
P: Sync,
impl<P> Unpin for PacketDuplicateMutator<P> where
P: Unpin,
impl<P> UnwindSafe for PacketDuplicateMutator<P> where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [TupleList], of an Prepend::prepend() call,
including the prepended entry. Read more
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.