pub struct EvalFiber { /* private fields */ }Implementations§
Source§impl EvalFiber
impl EvalFiber
Sourcepub fn start_observed(
source: &str,
env: HashMap<String, Value>,
) -> Result<Self, String>
pub fn start_observed( source: &str, env: HashMap<String, Value>, ) -> Result<Self, String>
Creates a live evaluator paused before the first production CPS step.
Sourcepub fn start_forms_observed(
forms: Vec<Form>,
env: HashMap<String, Value>,
) -> Result<Self, String>
pub fn start_forms_observed( forms: Vec<Form>, env: HashMap<String, Value>, ) -> Result<Self, String>
Creates a live evaluator paused before evaluating forms without source spans.
Sourcepub fn observed_paused(&self) -> bool
pub fn observed_paused(&self) -> bool
Returns true while an observed fiber owns a retained CPS continuation.
Sourcepub fn observed_pending_boundaries(&self) -> usize
pub fn observed_pending_boundaries(&self) -> usize
Returns the number of semantic boundaries retained for host publication.
Sourcepub fn step_observed(&mut self) -> EvalFiberState
pub fn step_observed(&mut self) -> EvalFiberState
Executes at most one retained production continuation boundary.
Sourcepub fn run_observed(&mut self, boundary_limit: usize) -> EvalFiberState
pub fn run_observed(&mut self, boundary_limit: usize) -> EvalFiberState
Runs up to boundary_limit evaluator or queued semantic boundaries.
Sourcepub fn resume_observed(&mut self, state: PromiseState) -> EvalFiberState
pub fn resume_observed(&mut self, state: PromiseState) -> EvalFiberState
Applies one real promise settlement without draining later boundaries.
Source§impl EvalFiber
impl EvalFiber
Sourcepub fn snapshot_observed_value(&self, source_id: impl Into<String>) -> Value
pub fn snapshot_observed_value(&self, source_id: impl Into<String>) -> Value
Returns a bounded JSON-safe document with default observation limits.
Sourcepub fn snapshot_observed_value_with_limits(
&self,
source_id: impl Into<String>,
binding_limit: usize,
display_chars: usize,
) -> Value
pub fn snapshot_observed_value_with_limits( &self, source_id: impl Into<String>, binding_limit: usize, display_chars: usize, ) -> Value
Returns a bounded JSON-safe document without exposing runtime handles.
Sourcepub fn step_observed_value(&mut self, source_id: impl Into<String>) -> Value
pub fn step_observed_value(&mut self, source_id: impl Into<String>) -> Value
Executes one production continuation and returns before/after evidence.
Sourcepub fn step_observed_value_with_limits(
&mut self,
source_id: impl Into<String>,
binding_limit: usize,
display_chars: usize,
) -> Value
pub fn step_observed_value_with_limits( &mut self, source_id: impl Into<String>, binding_limit: usize, display_chars: usize, ) -> Value
Executes one production continuation with caller-selected evidence bounds.
Sourcepub fn resume_observed_value(
&mut self,
state: PromiseState,
source_id: impl Into<String>,
) -> Value
pub fn resume_observed_value( &mut self, state: PromiseState, source_id: impl Into<String>, ) -> Value
Applies one real promise settlement and returns before/after evidence.
Sourcepub fn resume_observed_value_with_limits(
&mut self,
state: PromiseState,
source_id: impl Into<String>,
binding_limit: usize,
display_chars: usize,
) -> Value
pub fn resume_observed_value_with_limits( &mut self, state: PromiseState, source_id: impl Into<String>, binding_limit: usize, display_chars: usize, ) -> Value
Applies one promise settlement with caller-selected evidence bounds.
Source§impl EvalFiber
impl EvalFiber
pub fn start(source: &str, env: HashMap<String, Value>) -> Result<Self, String>
pub fn start_forms( forms: Vec<Form>, env: HashMap<String, Value>, ) -> Result<Self, String>
pub fn state(&self) -> EvalFiberState
pub fn pending(&self) -> Option<Promise>
pub fn environment(&self) -> HashMap<String, Value>
pub fn resume(&mut self, state: PromiseState) -> EvalFiberState
pub fn cancel(&mut self) -> bool
pub fn drive_sync(&mut self) -> Result<Value, String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EvalFiber
impl !Send for EvalFiber
impl !Sync for EvalFiber
impl !UnwindSafe for EvalFiber
impl Freeze for EvalFiber
impl Unpin for EvalFiber
impl UnsafeUnpin for EvalFiber
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more