pub struct BackendProfile { /* private fields */ }Expand description
TYPED planning view, derived DETERMINISTICALLY from a raw snapshot. The planner consults THIS, never the map.
Holds a per-RequirementKind machine CEILING: the strongest enforcement
the machine can actually back for that kind right now.
Implementations§
Source§impl BackendProfile
impl BackendProfile
Sourcepub fn from_ceiling(ceiling: BTreeMap<RequirementKind, SupportVerdict>) -> Self
pub fn from_ceiling(ceiling: BTreeMap<RequirementKind, SupportVerdict>) -> Self
Build a typed profile from an explicit per-kind ceiling table. A kind absent from the table is the fail-closed bottom.
Sourcepub fn ceiling_for(&self, kind: RequirementKind) -> SupportVerdict
pub fn ceiling_for(&self, kind: RequirementKind) -> SupportVerdict
The machine ceiling SupportVerdict for one requirement kind; the
fail-closed bottom if unknown.
Sourcepub fn enforced_kinds(&self) -> Vec<RequirementKind>
pub fn enforced_kinds(&self) -> Vec<RequirementKind>
The requirement kinds this ceiling advertises at
Enforcement::Enforced,
in canonical order — exactly the cells the qualification coupling gate must
find a Proven ledger row for.
Trait Implementations§
Source§impl Clone for BackendProfile
impl Clone for BackendProfile
Source§fn clone(&self) -> BackendProfile
fn clone(&self) -> BackendProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendProfile
impl Debug for BackendProfile
impl Eq for BackendProfile
Source§impl PartialEq for BackendProfile
impl PartialEq for BackendProfile
Source§fn eq(&self, other: &BackendProfile) -> bool
fn eq(&self, other: &BackendProfile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendProfile
Auto Trait Implementations§
impl Freeze for BackendProfile
impl RefUnwindSafe for BackendProfile
impl Send for BackendProfile
impl Sync for BackendProfile
impl Unpin for BackendProfile
impl UnsafeUnpin for BackendProfile
impl UnwindSafe for BackendProfile
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> 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<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