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§
Implementations§
source§impl 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§
source§impl Clone for ConstFeedback
impl Clone for ConstFeedback
source§fn clone(&self) -> ConstFeedback
fn clone(&self) -> ConstFeedback
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConstFeedback
impl Debug for ConstFeedback
source§impl<'de> Deserialize<'de> for ConstFeedback
impl<'de> Deserialize<'de> for ConstFeedback
source§fn 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
source§impl<S> Feedback<S> for ConstFeedbackwhere
S: UsesInput + HasClientPerfMonitor,
impl<S> Feedback<S> for ConstFeedbackwhere
S: UsesInput + HasClientPerfMonitor,
source§fn is_interesting<EM, OT>(
&mut self,
_state: &mut S,
_manager: &mut EM,
_input: &S::Input,
_observers: &OT,
_exit_kind: &ExitKind
) -> Result<bool, Error>where
EM: EventFirer<State = S>,
OT: ObserversTuple<S>,
fn is_interesting<EM, OT>(
&mut self,
_state: &mut S,
_manager: &mut EM,
_input: &S::Input,
_observers: &OT,
_exit_kind: &ExitKind
) -> Result<bool, Error>where
EM: EventFirer<State = S>,
OT: ObserversTuple<S>,
is_interesting
return if an input is worth the addition to the corpussource§fn 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.source§impl From<bool> for ConstFeedback
impl From<bool> for ConstFeedback
source§impl PartialEq<ConstFeedback> for ConstFeedback
impl PartialEq<ConstFeedback> for ConstFeedback
source§fn eq(&self, other: &ConstFeedback) -> bool
fn eq(&self, other: &ConstFeedback) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl 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§
source§impl<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.source§fn 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.