pub struct SingleEvaluation<'e, 's, S, EvalStatus> { /* private fields */ }Implementations§
Source§impl<'e, 's, S: SelectableSource> SingleEvaluation<'e, 's, S, EvaluationFinished>
impl<'e, 's, S: SelectableSource> SingleEvaluation<'e, 's, S, EvaluationFinished>
pub fn one_specialized<T: SpecializeFrom>( &self, ) -> Result<T, SingleEvaluationError<EvalSignal>>
Source§impl<'e, 's, S: SelectableSource> SingleEvaluation<'e, 's, S, EvaluationFinishedOrCancelled>
impl<'e, 's, S: SelectableSource> SingleEvaluation<'e, 's, S, EvaluationFinishedOrCancelled>
pub fn one_specialized<T: SpecializeFrom>( &self, ) -> Result<Either<EvalSignal, T>, SingleEvaluationError>
Source§impl<'e, 's, S: SelectableSource, X> SingleEvaluation<'e, 's, S, X>
impl<'e, 's, S: SelectableSource, X> SingleEvaluation<'e, 's, S, X>
pub fn maybe_specialized_value<T: SpecializeFrom>( &self, ) -> Result<Option<Cow<'_, T>>, Either<cerr, AnyEvalTermination>>
pub fn value(&self) -> Result<Option<&RuntimeAny>, AnyEvalTermination>
pub fn into_actions(self) -> Vec<RuntimeAction>
pub fn all_values(&self) -> &BTreeMap<EntityId, RuntimeAny>
Source§impl<'e, 's, S: SelectableSource> SingleEvaluation<'e, 's, S, EvaluationRunning>
impl<'e, 's, S: SelectableSource> SingleEvaluation<'e, 's, S, EvaluationRunning>
pub fn new( log_pfx: LogPfx, entities: &'e BTreeMap<EntityId, Entity>, entry_point: EntityId, selectable_data: &'s S, allowed_features: Features, allowed_network: Arc<dyn Fn(AllowNetData) -> Result<AllowNetData, (AllowNetData, cerr)> + Send + Sync>, ) -> Result<Self, EntryPointMissing>
pub fn extract_notice(&mut self) -> Vec<NoticeAction>
Sourcepub async fn run_step(&mut self) -> Result<bool, AnyEvalTermination>
pub async fn run_step(&mut self) -> Result<bool, AnyEvalTermination>
Run the next step if there is one and return (as bool) if there was a step to execute.
Ok(true): There was something to doOk(false): Computation finishedErr(fatal): Something really bad happened
pub async fn run_to_end_without_early_return( self, ) -> (Vec<NoticeAction>, SingleEvaluation<'e, 's, S, EvaluationFinished>)
pub async fn run_to_end_with_early_return( self, ) -> (Vec<NoticeAction>, SingleEvaluation<'e, 's, S, EvaluationFinishedOrCancelled>)
Trait Implementations§
Auto Trait Implementations§
impl<'e, 's, S, EvalStatus> !RefUnwindSafe for SingleEvaluation<'e, 's, S, EvalStatus>
impl<'e, 's, S, EvalStatus> !Sync for SingleEvaluation<'e, 's, S, EvalStatus>
impl<'e, 's, S, EvalStatus> !UnwindSafe for SingleEvaluation<'e, 's, S, EvalStatus>
impl<'e, 's, S, EvalStatus> Freeze for SingleEvaluation<'e, 's, S, EvalStatus>
impl<'e, 's, S, EvalStatus> Send for SingleEvaluation<'e, 's, S, EvalStatus>
impl<'e, 's, S, EvalStatus> Unpin for SingleEvaluation<'e, 's, S, EvalStatus>where
EvalStatus: Unpin,
impl<'e, 's, S, EvalStatus> UnsafeUnpin for SingleEvaluation<'e, 's, S, EvalStatus>
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
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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> ⓘ
Converts
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> ⓘ
Converts
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