pub struct TimeoutExecutor<E> { /* private fields */ }
Expand description
The timeout executor is a wrapper that sets a timeout before each run
Implementations
sourceimpl<E: HasInProcessHandlers> TimeoutExecutor<E>
impl<E: HasInProcessHandlers> TimeoutExecutor<E>
sourcepub fn new(executor: E, exec_tmout: Duration) -> Self
pub fn new(executor: E, exec_tmout: Duration) -> Self
Create a new TimeoutExecutor
, wrapping the given executor
and checking for timeouts.
sourcepub fn set_timeout(&mut self, exec_tmout: Duration)
pub fn set_timeout(&mut self, exec_tmout: Duration)
Set the timeout for this executor
Trait Implementations
sourceimpl<E: Debug> Debug for TimeoutExecutor<E>
impl<E: Debug> Debug for TimeoutExecutor<E>
sourceimpl<E, EM, I, S, Z> Executor<EM, I, S, Z> for TimeoutExecutor<E> where
E: Executor<EM, I, S, Z> + HasInProcessHandlers,
I: Input,
impl<E, EM, I, S, Z> Executor<EM, I, S, Z> for TimeoutExecutor<E> where
E: Executor<EM, I, S, Z> + HasInProcessHandlers,
I: Input,
sourcefn post_run_reset(&mut self)
fn post_run_reset(&mut self)
sourcefn run_target(
&mut self,
fuzzer: &mut Z,
state: &mut S,
mgr: &mut EM,
input: &I
) -> Result<ExitKind, Error>
fn run_target(
&mut self,
fuzzer: &mut Z,
state: &mut S,
mgr: &mut EM,
input: &I
) -> Result<ExitKind, Error>
Instruct the target about the input and run
sourcefn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT> where
Self: Sized,
OT: ObserversTuple<I, S>,
fn with_observers<OT>(self, observers: OT) -> WithObservers<Self, OT> where
Self: Sized,
OT: ObserversTuple<I, S>,
Wraps this Executor with the given ObserversTuple
to implement HasObservers
. Read more
sourceimpl<E, I, OT, S> HasObservers<I, OT, S> for TimeoutExecutor<E> where
E: HasObservers<I, OT, S>,
OT: ObserversTuple<I, S>,
impl<E, I, OT, S> HasObservers<I, OT, S> for TimeoutExecutor<E> where
E: HasObservers<I, OT, S>,
OT: ObserversTuple<I, S>,
Auto Trait Implementations
impl<E> RefUnwindSafe for TimeoutExecutor<E> where
E: RefUnwindSafe,
impl<E> !Send for TimeoutExecutor<E>
impl<E> !Sync for TimeoutExecutor<E>
impl<E> Unpin for TimeoutExecutor<E> where
E: Unpin,
impl<E> UnwindSafe for TimeoutExecutor<E> where
E: 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
sourceimpl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
type PreprendResult = Tail
type PreprendResult = Tail
The Resulting TupleList
, of an Prepend::prepend()
call,
including the prepended entry. Read more
sourcefn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
fn prepend(self, value: T) -> (T, <Tail as Prepend<T>>::PreprendResult)
Prepend a value to this tuple, returning a new tuple with prepended value.