pub struct StabilityGuaranteeManager { /* private fields */ }
Expand description
Advanced stability guarantee manager with formal verification and runtime monitoring
Implementations§
Source§impl StabilityGuaranteeManager
impl StabilityGuaranteeManager
Sourcepub fn register_contract(&mut self, contract: ApiContract) -> CoreResult<()>
pub fn register_contract(&mut self, contract: ApiContract) -> CoreResult<()>
Register an API contract
Sourcepub fn get_contract(&self, apiname: &str, module: &str) -> Option<&ApiContract>
pub fn get_contract(&self, apiname: &str, module: &str) -> Option<&ApiContract>
Get contract for an API
Sourcepub fn has_stability_guarantees(&self, apiname: &str, module: &str) -> bool
pub fn has_stability_guarantees(&self, apiname: &str, module: &str) -> bool
Check if an API has stability guarantees
Sourcepub fn validate_usage(
&self,
apiname: &str,
module: &str,
usage_context: &UsageContext,
) -> CoreResult<()>
pub fn validate_usage( &self, apiname: &str, module: &str, usage_context: &UsageContext, ) -> CoreResult<()>
Validate API usage against contracts
Sourcepub fn record_breaking_change(&mut self, change: BreakingChange)
pub fn record_breaking_change(&mut self, change: BreakingChange)
Record a breaking change
Sourcepub fn areversions_compatible(&self, from: &Version, to: &Version) -> bool
pub fn areversions_compatible(&self, from: &Version, to: &Version) -> bool
Check version compatibility
Sourcepub fn generate_stability_report(&self) -> String
pub fn generate_stability_report(&self) -> String
Generate stability report
Sourcepub fn initialize_core_contracts(&mut self) -> CoreResult<()>
pub fn initialize_core_contracts(&mut self) -> CoreResult<()>
Initialize default contracts for core APIs
Sourcepub fn validate_api_call(
&self,
apiname: &str,
module: &str,
call_context: &ApiCallContext,
) -> CoreResult<()>
pub fn validate_api_call( &self, apiname: &str, module: &str, call_context: &ApiCallContext, ) -> CoreResult<()>
Validate API call at runtime
Sourcepub fn enable_chaos_engineering(&mut self, faultprobability: f64)
pub fn enable_chaos_engineering(&mut self, faultprobability: f64)
Enable chaos engineering for resilience testing
Sourcepub fn record_performance(
&mut self,
apiname: &str,
module: &str,
system_state: SystemState,
input_characteristics: InputCharacteristics,
performance: PerformanceMetrics,
)
pub fn record_performance( &mut self, apiname: &str, module: &str, system_state: SystemState, input_characteristics: InputCharacteristics, performance: PerformanceMetrics, )
Record performance measurement for modeling
Sourcepub fn predict_performance(
&self,
apiname: &str,
input_characteristics: InputCharacteristics,
system_state: &SystemState,
) -> Option<RuntimePerformanceMetrics>
pub fn predict_performance( &self, apiname: &str, input_characteristics: InputCharacteristics, system_state: &SystemState, ) -> Option<RuntimePerformanceMetrics>
Predict performance for given conditions
Sourcepub fn get_verification_status(
&self,
apiname: &str,
module: &str,
) -> VerificationStatus
pub fn get_verification_status( &self, apiname: &str, module: &str, ) -> VerificationStatus
Get formal verification status
Sourcepub fn get_validation_statistics(&self) -> Option<ValidationStatistics>
pub fn get_validation_statistics(&self) -> Option<ValidationStatistics>
Get runtime validation statistics
Sourcepub fn verify_audit_integrity(&self) -> bool
pub fn verify_audit_integrity(&self) -> bool
Verify audit trail integrity
Sourcepub fn get_audit_trail_length(&self) -> usize
pub fn get_audit_trail_length(&self) -> usize
Get audit trail length
Sourcepub fn get_verification_coverage(&self) -> f64
pub fn get_verification_coverage(&self) -> f64
Get verification coverage percentage
Sourcepub fn get_model_accuracy(&self, apiname: &str) -> Option<f64>
pub fn get_model_accuracy(&self, apiname: &str) -> Option<f64>
Get performance model accuracy for an API
Sourcepub fn export_audit_trail(&self) -> CoreResult<String>
pub fn export_audit_trail(&self) -> CoreResult<String>
Export audit trail for external verification
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StabilityGuaranteeManager
impl RefUnwindSafe for StabilityGuaranteeManager
impl Send for StabilityGuaranteeManager
impl !Sync for StabilityGuaranteeManager
impl Unpin for StabilityGuaranteeManager
impl UnwindSafe for StabilityGuaranteeManager
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> 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