Skip to main content

ExplorerCtx

Struct ExplorerCtx 

Source
pub struct ExplorerCtx {
    pub active: bool,
    pub is_child: bool,
    pub depth: u32,
    pub max_depth: u32,
    pub current_seed: u64,
    pub recipe: Vec<(u64, u64)>,
    pub timelines_per_split: u32,
    pub adaptive: Option<AdaptiveConfig>,
    pub parallelism: Option<Parallelism>,
    pub warm_start: bool,
}
Expand description

Exploration state for the current process.

Fields§

§active: bool

Whether exploration is active.

§is_child: bool

Whether this process is a forked child.

§depth: u32

Current fork depth (0 = root).

§max_depth: u32

Maximum allowed fork depth.

§current_seed: u64

Current seed for this timeline.

§recipe: Vec<(u64, u64)>

Recipe: sequence of (rng_call_count, child_seed) pairs describing the fork points that led to this timeline.

§timelines_per_split: u32

Number of children to fork at each discovery point.

§adaptive: Option<AdaptiveConfig>

Adaptive forking configuration (None = fixed-count mode).

§parallelism: Option<Parallelism>

Parallelism configuration (None = sequential).

§warm_start: bool

Whether this seed is a warm start (explored map has prior coverage).

Implementations§

Source§

impl ExplorerCtx

Source

pub fn inactive() -> Self

Create an inactive context (exploration disabled).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.