Struct libafl::executors::forkserver::Forkserver
source · [−]pub struct Forkserver { /* private fields */ }
Expand description
The Forkserver
is communication channel with a child process that forks on request of the fuzzer.
The communication happens via pipe.
Implementations
sourceimpl Forkserver
impl Forkserver
sourcepub fn new(
target: OsString,
args: Vec<OsString>,
envs: Vec<(OsString, OsString)>,
input_filefd: RawFd,
use_stdin: bool,
memlimit: u64,
debug_output: bool
) -> Result<Self, Error>
pub fn new(
target: OsString,
args: Vec<OsString>,
envs: Vec<(OsString, OsString)>,
input_filefd: RawFd,
use_stdin: bool,
memlimit: u64,
debug_output: bool
) -> Result<Self, Error>
Create a new Forkserver
sourcepub fn last_run_timed_out(&self) -> i32
pub fn last_run_timed_out(&self) -> i32
If the last run timed out
sourcepub fn set_last_run_timed_out(&mut self, last_run_timed_out: i32)
pub fn set_last_run_timed_out(&mut self, last_run_timed_out: i32)
Sets if the last run timed out
sourcepub fn set_status(&mut self, status: i32)
pub fn set_status(&mut self, status: i32)
Sets the status
sourcepub fn set_child_pid(&mut self, child_pid: Pid)
pub fn set_child_pid(&mut self, child_pid: Pid)
Set the child pid
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Forkserver
impl Send for Forkserver
impl Sync for Forkserver
impl Unpin for Forkserver
impl UnwindSafe for Forkserver
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.