Struct net::phy::FuzzInjector
pub struct FuzzInjector<D, FTx, FRx>where
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§
§impl<D, FTx, FRx> FuzzInjector<D, FTx, FRx>where
D: Device,
FTx: Fuzzer,
FRx: Fuzzer,
impl<D, FTx, FRx> FuzzInjector<D, FTx, FRx>where D: Device, FTx: Fuzzer, FRx: Fuzzer,
pub 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.
pub fn into_inner(self) -> D
pub fn into_inner(self) -> D
Return the underlying device, consuming the fuzz injector.
Trait Implementations§
§impl<D, FTx, FRx> Debug for FuzzInjector<D, FTx, FRx>where
D: Debug + Device,
FTx: Debug + Fuzzer,
FRx: Debug + Fuzzer,
impl<D, FTx, FRx> Debug for FuzzInjector<D, FTx, FRx>where D: Debug + Device, FTx: Debug + Fuzzer, FRx: Debug + Fuzzer,
§impl<D, FTx, FRx> Device for FuzzInjector<D, FTx, FRx>where
D: Device,
FTx: Fuzzer,
FRx: Fuzzer,
impl<D, FTx, FRx> Device for FuzzInjector<D, FTx, FRx>where D: Device, FTx: Fuzzer, FRx: Fuzzer,
type RxToken<'a> = RxToken<'a, <D as Device>::RxToken<'a>, FRx> where FuzzInjector<D, FTx, FRx>: 'a
type TxToken<'a> = TxToken<'a, <D as Device>::TxToken<'a>, FTx> where FuzzInjector<D, FTx, FRx>: 'a
§fn capabilities(&self) -> DeviceCapabilities
fn capabilities(&self) -> DeviceCapabilities
Get a description of device capabilities.
Auto Trait Implementations§
impl<D, FTx, FRx> RefUnwindSafe for FuzzInjector<D, FTx, FRx>where D: RefUnwindSafe, FRx: RefUnwindSafe, FTx: RefUnwindSafe,
impl<D, FTx, FRx> Send for FuzzInjector<D, FTx, FRx>where D: Send, FRx: Send, FTx: Send,
impl<D, FTx, FRx> Sync for FuzzInjector<D, FTx, FRx>where D: Sync, FRx: Sync, FTx: Sync,
impl<D, FTx, FRx> Unpin for FuzzInjector<D, FTx, FRx>where D: Unpin, FRx: Unpin, FTx: Unpin,
impl<D, FTx, FRx> UnwindSafe for FuzzInjector<D, FTx, FRx>where D: UnwindSafe, FRx: UnwindSafe, FTx: UnwindSafe,
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