pub struct CandidateTraceExecutionPolicy {
pub kind: String,
pub attributes: Vec<CandidateTracePhaseAttribute>,
pub opaque: bool,
}Expand description
The execution policy the solver actually installed for this run.
Configuration input is useful provenance, but it is not itself the
execution policy: the configured entrypoint can inject a fallback time
limit, discard an invalid score target, or compose a criterion with a
time guard. This value records that resolved result explicitly. A
generic crate::solver::Solver whose termination is supplied as an
arbitrary Rust value is intentionally opaque unless its caller supplies a
canonical policy through the internal configured-run seam.
Fields§
§kind: String§attributes: Vec<CandidateTracePhaseAttribute>Sorted, unique material policy attributes. These identify the installed termination composition rather than a display-only summary.
opaque: boolImplementations§
Source§impl CandidateTraceExecutionPolicy
impl CandidateTraceExecutionPolicy
pub fn known<K, V, I>(kind: impl Into<String>, attributes: I) -> Self
pub fn opaque(kind: impl Into<String>) -> Self
Sourcepub fn opaque_with_attributes<K, V, I>(
kind: impl Into<String>,
attributes: I,
) -> Self
pub fn opaque_with_attributes<K, V, I>( kind: impl Into<String>, attributes: I, ) -> Self
Records observable policy fields while explicitly declining to claim
complete policy provenance. This is used by the generic Solver
entrypoint: with_time_limit is observable and must be retained, but
the caller’s arbitrary Rust termination remains uninspectable.
pub const fn is_complete(&self) -> bool
pub fn canonical_bytes(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for CandidateTraceExecutionPolicy
impl Clone for CandidateTraceExecutionPolicy
Source§fn clone(&self) -> CandidateTraceExecutionPolicy
fn clone(&self) -> CandidateTraceExecutionPolicy
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Eq for CandidateTraceExecutionPolicy
impl StructuralPartialEq for CandidateTraceExecutionPolicy
Auto Trait Implementations§
impl Freeze for CandidateTraceExecutionPolicy
impl RefUnwindSafe for CandidateTraceExecutionPolicy
impl Send for CandidateTraceExecutionPolicy
impl Sync for CandidateTraceExecutionPolicy
impl Unpin for CandidateTraceExecutionPolicy
impl UnsafeUnpin for CandidateTraceExecutionPolicy
impl UnwindSafe for CandidateTraceExecutionPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
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