pub struct UnifiedCommandEvaluator { /* private fields */ }Expand description
Unified command evaluator combining policies and safety rules
Implementations§
Source§impl UnifiedCommandEvaluator
impl UnifiedCommandEvaluator
Sourcepub async fn evaluate_with_policy(
&self,
command: &[String],
policy_allowed: bool,
policy_reason: &str,
) -> Result<EvaluationResult>
pub async fn evaluate_with_policy( &self, command: &[String], policy_allowed: bool, policy_reason: &str, ) -> Result<EvaluationResult>
Evaluate with explicit policy check (requires external CommandPolicyEvaluator)
This is a placeholder for integration with CommandPolicyEvaluator. In a real implementation, this would:
- Check policy rules first (deny precedence)
- Then apply safety rules
- Merge results
Sourcepub fn cache(&self) -> &SafetyDecisionCache
pub fn cache(&self) -> &SafetyDecisionCache
Get reference to the cache for metrics/debugging
Sourcepub fn registry(&self) -> &SafeCommandRegistry
pub fn registry(&self) -> &SafeCommandRegistry
Get reference to the registry
Sourcepub fn database(&self) -> &CommandDatabase
pub fn database(&self) -> &CommandDatabase
Get reference to the database
Trait Implementations§
Source§impl Clone for UnifiedCommandEvaluator
impl Clone for UnifiedCommandEvaluator
Source§fn clone(&self) -> UnifiedCommandEvaluator
fn clone(&self) -> UnifiedCommandEvaluator
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for UnifiedCommandEvaluator
impl !UnwindSafe for UnifiedCommandEvaluator
impl Freeze for UnifiedCommandEvaluator
impl Send for UnifiedCommandEvaluator
impl Sync for UnifiedCommandEvaluator
impl Unpin for UnifiedCommandEvaluator
impl UnsafeUnpin for UnifiedCommandEvaluator
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