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 moresourceimpl 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 ConstFeedbackwhere
I: Input,
S: HasClientPerfMonitor,
impl<I, S> Feedback<I, S> for ConstFeedbackwhere
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 corpussourcefn 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 moresourceimpl From<bool> for ConstFeedback
impl From<bool> for ConstFeedback
sourceimpl PartialEq<ConstFeedback> for ConstFeedback
impl PartialEq<ConstFeedback> for ConstFeedback
sourcefn eq(&self, other: &ConstFeedback) -> bool
fn eq(&self, other: &ConstFeedback) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
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.