Struct libafl::observers::stdio::StdErrObserver
source · Expand description
An observer that captures stderr of a target. Only works for supported executors.
Fields§
§name: String
The name of the observer.
stderr: Option<Vec<u8>>
The stderr of the target during its last execution.
Implementations§
source§impl StdErrObserver
impl StdErrObserver
An observer that captures stderr of a target.
sourcepub fn new(name: String) -> Self
pub fn new(name: String) -> Self
Create a new StdErrObserver
with the given name.
Trait Implementations§
source§impl Clone for StdErrObserver
impl Clone for StdErrObserver
source§fn clone(&self) -> StdErrObserver
fn clone(&self) -> StdErrObserver
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 StdErrObserver
impl Debug for StdErrObserver
source§impl Hash for StdErrObserver
impl Hash for StdErrObserver
source§impl<S> Observer<S> for StdErrObserverwhere
S: UsesInput,
impl<S> Observer<S> for StdErrObserverwhere
S: UsesInput,
source§fn observe_stderr(&mut self, stderr: &[u8])
fn observe_stderr(&mut self, stderr: &[u8])
React to new stderr
source§fn observes_stderr(&self) -> bool
fn observes_stderr(&self) -> bool
If this observer observes
stderr
source§fn flush(&mut self) -> Result<(), Error>
fn flush(&mut self) -> Result<(), Error>
The testcase finished execution, calculate any changes.
Reserved for future use.
source§fn pre_exec(&mut self, _state: &mut S, _input: &S::Input) -> Result<(), Error>
fn pre_exec(&mut self, _state: &mut S, _input: &S::Input) -> Result<(), Error>
Called right before execution starts.
source§fn post_exec(
&mut self,
_state: &mut S,
_input: &S::Input,
_exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec(
&mut self,
_state: &mut S,
_input: &S::Input,
_exit_kind: &ExitKind
) -> Result<(), Error>
Called right after execution finishes.
source§fn pre_exec_child(
&mut self,
_state: &mut S,
_input: &S::Input
) -> Result<(), Error>
fn pre_exec_child(
&mut self,
_state: &mut S,
_input: &S::Input
) -> Result<(), Error>
Called right before execution starts in the child process, if any.
source§fn post_exec_child(
&mut self,
_state: &mut S,
_input: &S::Input,
_exit_kind: &ExitKind
) -> Result<(), Error>
fn post_exec_child(
&mut self,
_state: &mut S,
_input: &S::Input,
_exit_kind: &ExitKind
) -> Result<(), Error>
Called right after execution finishes in the child process, if any.
source§fn observes_stdout(&self) -> bool
fn observes_stdout(&self) -> bool
If this observer observes
stdout
source§fn observe_stdout(&mut self, stdout: &[u8])
fn observe_stdout(&mut self, stdout: &[u8])
React to new
stdout
To use this, always return true
from observes_stdout
source§impl PartialEq<StdErrObserver> for StdErrObserver
impl PartialEq<StdErrObserver> for StdErrObserver
source§fn eq(&self, other: &StdErrObserver) -> bool
fn eq(&self, other: &StdErrObserver) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StdErrObserver
impl StructuralEq for StdErrObserver
impl StructuralPartialEq for StdErrObserver
Auto Trait Implementations§
impl RefUnwindSafe for StdErrObserver
impl Send for StdErrObserver
impl Sync for StdErrObserver
impl Unpin for StdErrObserver
impl UnwindSafe for StdErrObserver
Blanket Implementations§
source§impl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
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.