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