pub struct CapabilityAssessment {
pub capability: ProcessorCapability,
pub reason: String,
pub factors: Vec<CapabilityFactor>,
pub missing_requirements: Vec<String>,
}
Expand description
Assessment details for debugging and analysis
This structure provides detailed information about why a processor returned a particular capability assessment, useful for debugging processor selection decisions.
Fields§
§capability: ProcessorCapability
The capability level assessed
reason: String
Explanation of why this capability was assigned
factors: Vec<CapabilityFactor>
Factors that contributed to the assessment
missing_requirements: Vec<String>
Missing requirements that prevented higher capability
Implementations§
Source§impl CapabilityAssessment
impl CapabilityAssessment
Sourcepub fn new(capability: ProcessorCapability, reason: String) -> Self
pub fn new(capability: ProcessorCapability, reason: String) -> Self
Create a new capability assessment
Sourcepub fn add_factor(self, factor: CapabilityFactor) -> Self
pub fn add_factor(self, factor: CapabilityFactor) -> Self
Add a contributing factor
Sourcepub fn add_missing_requirement(self, requirement: String) -> Self
pub fn add_missing_requirement(self, requirement: String) -> Self
Add a missing requirement
Sourcepub fn detailed_explanation(&self) -> String
pub fn detailed_explanation(&self) -> String
Get a detailed explanation including all factors
Trait Implementations§
Source§impl Clone for CapabilityAssessment
impl Clone for CapabilityAssessment
Source§fn clone(&self) -> CapabilityAssessment
fn clone(&self) -> CapabilityAssessment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CapabilityAssessment
impl RefUnwindSafe for CapabilityAssessment
impl Send for CapabilityAssessment
impl Sync for CapabilityAssessment
impl Unpin for CapabilityAssessment
impl UnwindSafe for CapabilityAssessment
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