#[non_exhaustive]pub enum BackendPolicy {
ScalarExecutionOnly,
SimdFeatureDisabled,
NoDetectedSimdCandidate,
HighAssuranceScalarOnly,
}Expand description
Deployment policy for runtime backend assertions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ScalarExecutionOnly
Require encode/decode execution to remain on a terminal scalar backend.
NeverRun and Testing health states do not satisfy this policy:
their temporary scalar fallback may later transition to acceleration.
SimdFeatureDisabled
Require the crate to be built without the simd feature.
NoDetectedSimdCandidate
Require no SIMD candidate to be visible to this build and target.
HighAssuranceScalarOnly
Require scalar execution, the simd feature disabled, no detected
SIMD candidate, the unsafe boundary enforced, and a CT result gate
classified as a native hardware speculation barrier.
This policy intentionally rejects targets that report only an
unattested hardware barrier, ordering fence, or compiler fence for the
CT result gate. On AArch64, the crate emits isb sy plus the CSDB
hint but reports that posture as unattested; deployments that rely on
CSDB must carry platform evidence outside this built-in policy check.
Implementations§
Trait Implementations§
Source§impl Clone for BackendPolicy
impl Clone for BackendPolicy
Source§fn clone(&self) -> BackendPolicy
fn clone(&self) -> BackendPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more