Struct smoltcp::phy::FuzzInjector[][src]

pub struct FuzzInjector<D: for<'a> Device<'a>, FTx: Fuzzer, FRx: Fuzzer> { /* fields omitted */ }

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: for<'a> Device<'a>, FTx: Fuzzer, FRx: Fuzzer> FuzzInjector<D, FTx, FRx>[src]

pub fn new(inner: D, fuzz_tx: FTx, fuzz_rx: FRx) -> FuzzInjector<D, FTx, FRx>[src]

Create a fuzz injector device.

pub fn into_inner(self) -> D[src]

Return the underlying device, consuming the fuzz injector.

Trait Implementations

impl<D: Debug + for<'a> Device<'a>, FTx: Debug + Fuzzer, FRx: Debug + Fuzzer> Debug for FuzzInjector<D, FTx, FRx>[src]

impl<'a, D, FTx, FRx> Device<'a> for FuzzInjector<D, FTx, FRx> where
    D: for<'b> Device<'b>,
    FTx: Fuzzer + 'a,
    FRx: Fuzzer + 'a, 
[src]

type RxToken = RxToken<'a, <D as Device<'a>>::RxToken, FRx>

type TxToken = TxToken<'a, <D as Device<'a>>::TxToken, FTx>

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.