Skip to main content

Crate mobench_domain

Crate mobench_domain 

Source
Expand description

Versioned Mobench contracts and boundary validation.

Structs§

BoundRunReportV2
Canonical report after producer identity and provider transport evidence have both been validated.
ExpectedProviderBinding
Provider transport evidence expected for one collected report.
ExpectedReportIdentity
Identity and request metadata expected by the report consumer.
ProviderReportBinding
Authenticated provider evidence attached after a producer envelope is read from one concrete provider transport session.
ReducedProvenanceReport
Explicitly reduced-provenance data adapted from the legacy v1 shape.
ReportCount
A bounded count used by report requests and observations.
ReportCounts
Requested or observed benchmark counts.
ReportEnvelopeV2
Strict v2 report envelope.
ReportFailure
Structured failure information for a v2 report.
ReportIdentifier
A bounded, path-safe, nonempty component used in report identity.
ReportIdentity
All provenance fields that bind a report to one requested execution.

Enums§

AndroidBenchFrameError
Errors produced while decoding Android benchmark log frames.
LegacyV1AdapterError
Failure adapting an explicitly requested legacy v1 report.
ReportBindingError
Failure while attaching provider transport evidence to a producer report.
ReportConstructionError
Failure constructing typed report values locally.
ReportIdentifierError
Why an identity component was rejected.
ReportOutcome
Outcome of a completed report envelope.
ReportValidationError
Strict validation or parsing failure for a v2 report.

Constants§

MAX_ANDROID_BENCH_PAYLOAD_BYTES
Maximum accepted JSON payload for one Android benchmark report.
MAX_REPORT_COUNT
Maximum accepted measured or warmup iteration count at runtime boundaries.
MAX_REPORT_FAILURE_MESSAGE_BYTES
Maximum UTF-8 byte length of a failure message.
MAX_REPORT_IDENTIFIER_BYTES
Maximum UTF-8 byte length of a report identity component.
MAX_REPORT_SAMPLES
Maximum accepted number of samples in one report.
REPORT_SCHEMA_V2
Canonical schema identifier for strict Mobench run reports.

Functions§

adapt_legacy_v1_json
Parse only the legacy v1 report shape into an explicitly reduced type.
decode_android_bench_frames
Decode Android benchmark reports from generated logcat framing.