Struct libafl::feedbacks::TimeFeedback
source · [−]pub struct TimeFeedback { /* private fields */ }
Expand description
Nop feedback that annotates execution time in the new testcase, if any
for this Feedback, the testcase is never interesting (use with an OR).
It decides, if the given TimeObserver
value of a run is interesting.
Implementations
sourceimpl TimeFeedback
impl TimeFeedback
sourcepub fn new(name: &'static str) -> Self
pub fn new(name: &'static str) -> Self
Creates a new TimeFeedback
, deciding if the value of a TimeObserver
with the given name
of a run is interesting.
sourcepub fn new_with_observer(observer: &TimeObserver) -> Self
pub fn new_with_observer(observer: &TimeObserver) -> Self
Creates a new TimeFeedback
, deciding if the given TimeObserver
value of a run is interesting.
Trait Implementations
sourceimpl Clone for TimeFeedback
impl Clone for TimeFeedback
sourcefn clone(&self) -> TimeFeedback
fn clone(&self) -> TimeFeedback
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TimeFeedback
impl Debug for TimeFeedback
sourceimpl<'de> Deserialize<'de> for TimeFeedback
impl<'de> Deserialize<'de> for TimeFeedback
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<I, S> Feedback<I, S> for TimeFeedback where
I: Input,
S: HasClientPerfMonitor,
impl<I, S> Feedback<I, S> for TimeFeedback where
I: Input,
S: HasClientPerfMonitor,
sourcefn append_metadata(
&mut self,
_state: &mut S,
testcase: &mut Testcase<I>
) -> Result<(), Error>
fn append_metadata(
&mut self,
_state: &mut S,
testcase: &mut Testcase<I>
) -> Result<(), Error>
Append to the testcase the generated metadata in case of a new corpus item
sourcefn discard_metadata(&mut self, _state: &mut S, _input: &I) -> Result<(), Error>
fn discard_metadata(&mut self, _state: &mut S, _input: &I) -> Result<(), Error>
Discard the stored metadata in case that the testcase is not added to the corpus
sourcefn is_interesting<EM, OT>(
&mut self,
_state: &mut S,
_manager: &mut EM,
_input: &I,
observers: &OT,
_exit_kind: &ExitKind
) -> Result<bool, Error> where
EM: EventFirer<I>,
OT: ObserversTuple<I, S>,
fn is_interesting<EM, OT>(
&mut self,
_state: &mut S,
_manager: &mut EM,
_input: &I,
observers: &OT,
_exit_kind: &ExitKind
) -> Result<bool, Error> where
EM: EventFirer<I>,
OT: ObserversTuple<I, S>,
is_interesting
return if an input is worth the addition to the corpus
sourceimpl Serialize for TimeFeedback
impl Serialize for TimeFeedback
Auto Trait Implementations
impl RefUnwindSafe for TimeFeedback
impl Send for TimeFeedback
impl Sync for TimeFeedback
impl Unpin for TimeFeedback
impl UnwindSafe for TimeFeedback
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.