Enum libafl::feedbacks::ConstFeedback
source · [−]pub enum ConstFeedback {
True,
False,
}
Expand description
The ConstFeedback
reports the same value, always.
It can be used to enable or disable feedback results through composition.
Variants
True
Always returns true
False
Alsways returns false
Implementations
sourceimpl ConstFeedback
impl ConstFeedback
sourcepub fn new(val: bool) -> Self
pub fn new(val: bool) -> Self
Creates a new ConstFeedback
from the given boolean
Trait Implementations
sourceimpl Clone for ConstFeedback
impl Clone for ConstFeedback
sourcefn clone(&self) -> ConstFeedback
fn clone(&self) -> ConstFeedback
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 ConstFeedback
impl Debug for ConstFeedback
sourceimpl<'de> Deserialize<'de> for ConstFeedback
impl<'de> Deserialize<'de> for ConstFeedback
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 ConstFeedback where
I: Input,
S: HasClientPerfMonitor,
impl<I, S> Feedback<I, S> for ConstFeedback where
I: Input,
S: HasClientPerfMonitor,
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
sourcefn init_state(&mut self, _state: &mut S) -> Result<(), Error>
fn init_state(&mut self, _state: &mut S) -> Result<(), Error>
Initializes the feedback state.
This method is called after that the State
is created. Read more
sourceimpl From<bool> for ConstFeedback
impl From<bool> for ConstFeedback
sourceimpl PartialEq<ConstFeedback> for ConstFeedback
impl PartialEq<ConstFeedback> for ConstFeedback
sourceimpl Serialize for ConstFeedback
impl Serialize for ConstFeedback
impl Copy for ConstFeedback
impl Eq for ConstFeedback
impl StructuralEq for ConstFeedback
impl StructuralPartialEq for ConstFeedback
Auto Trait Implementations
impl RefUnwindSafe for ConstFeedback
impl Send for ConstFeedback
impl Sync for ConstFeedback
impl Unpin for ConstFeedback
impl UnwindSafe for ConstFeedback
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.