pub struct FuzzInjector<D: Device, FTx: Fuzzer, FRx: Fuzzer> { /* private fields */ }
Expand description
A fuzz injector device.
A fuzz injector is a device that alters packets traversing through it according to the directions of a guided fuzzer. It is designed to support fuzzing internal state machines inside smoltcp, and is not for production use.
Implementations§
Source§impl<D: Device, FTx: Fuzzer, FRx: Fuzzer> FuzzInjector<D, FTx, FRx>
impl<D: Device, FTx: Fuzzer, FRx: Fuzzer> FuzzInjector<D, FTx, FRx>
Sourcepub fn new(inner: D, fuzz_tx: FTx, fuzz_rx: FRx) -> FuzzInjector<D, FTx, FRx>
pub fn new(inner: D, fuzz_tx: FTx, fuzz_rx: FRx) -> FuzzInjector<D, FTx, FRx>
Create a fuzz injector device.
Sourcepub fn into_inner(self) -> D
pub fn into_inner(self) -> D
Return the underlying device, consuming the fuzz injector.
Trait Implementations§
Source§impl<D: Debug + Device, FTx: Debug + Fuzzer, FRx: Debug + Fuzzer> Debug for FuzzInjector<D, FTx, FRx>
impl<D: Debug + Device, FTx: Debug + Fuzzer, FRx: Debug + Fuzzer> Debug for FuzzInjector<D, FTx, FRx>
Source§impl<D: Device, FTx, FRx> Device for FuzzInjector<D, FTx, FRx>
impl<D: Device, FTx, FRx> Device for FuzzInjector<D, FTx, FRx>
type RxToken<'a> = RxToken<'a, <D as Device>::RxToken<'a>, FRx> where Self: 'a
type TxToken<'a> = TxToken<'a, <D as Device>::TxToken<'a>, FTx> where Self: 'a
Source§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.
Auto Trait Implementations§
impl<D, FTx, FRx> Freeze for FuzzInjector<D, FTx, FRx>
impl<D, FTx, FRx> RefUnwindSafe for FuzzInjector<D, FTx, FRx>
impl<D, FTx, FRx> Send for FuzzInjector<D, FTx, FRx>
impl<D, FTx, FRx> Sync for FuzzInjector<D, FTx, FRx>
impl<D, FTx, FRx> Unpin for FuzzInjector<D, FTx, FRx>
impl<D, FTx, FRx> UnwindSafe for FuzzInjector<D, FTx, FRx>
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