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
sourceimpl<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
sourceimpl<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>
sourceimpl<'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>
sourcefn 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
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