pub struct Bench { /* private fields */ }Implementations§
Source§impl Bench
impl Bench
Sourcepub async fn evaluate_system(
&self,
options: EvaluationOptions,
application: Application,
) -> Result<EvaluationReport, String>
pub async fn evaluate_system( &self, options: EvaluationOptions, application: Application, ) -> Result<EvaluationReport, String>
Execute the real app against pinned cases. No report is uploaded implicitly. Async callbacks must yield and await all child work; this is not a process sandbox.
Source§impl Bench
impl Bench
Sourcepub async fn publish_system_evaluation(
&self,
system_id: u64,
report: &EvaluationReport,
) -> Result<(), String>
pub async fn publish_system_evaluation( &self, system_id: u64, report: &EvaluationReport, ) -> Result<(), String>
Save client-reported evidence explicitly. This does not run a paid check.
Source§impl Bench
impl Bench
Sourcepub async fn simulate_system<F, Fut>(
&self,
options: EvaluationOptions,
create_session: F,
) -> Result<EvaluationReport, String>where
F: Fn(Value, EvaluationContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<SimulationSession, String>> + Send + 'static,
pub async fn simulate_system<F, Fut>(
&self,
options: EvaluationOptions,
create_session: F,
) -> Result<EvaluationReport, String>where
F: Fn(Value, EvaluationContext) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<SimulationSession, String>> + Send + 'static,
Scripted turns keep the real app and inspect fixture state before cleanup.
Source§impl Bench
impl Bench
pub fn new(options: Options) -> Result<Self, String>
pub fn start_span( &self, parent: Option<&TraceContext>, input: SpanInput, ) -> Span
pub async fn trace<T, E, F, Fut>( &self, parent: Option<&TraceContext>, input: SpanInput, run: F, ) -> Result<T, E>
pub fn stats(&self) -> Stats
pub async fn flush(&self)
pub async fn shutdown(&self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Bench
impl !UnwindSafe for Bench
impl Freeze for Bench
impl Send for Bench
impl Sync for Bench
impl Unpin for Bench
impl UnsafeUnpin for Bench
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