Struct smoltcp::phy::FuzzInjector
source · 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>where
FTx: Fuzzer,
FRx: Fuzzer,
impl<D: Device, FTx, FRx> Device for FuzzInjector<D, FTx, FRx>where
FTx: Fuzzer,
FRx: Fuzzer,
type RxToken<'a>
where
Self: 'a = RxToken<'a, <D as Device>::RxToken<'a>, FRx>
type TxToken<'a>
where
Self: 'a = TxToken<'a, <D as Device>::TxToken<'a>, FTx>
source§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.