pub enum ValidationStrategy {
AllowAll,
BlockFatalOnly,
BlockConflicts,
Strict,
}Expand description
Strategy for handling validation results
Different execution contexts require different validation strictness:
- FactionBoard: Each agent operates in isolation, conflicts resolved at compose time
- Speculative: Optimistic execution, rollback on conflict
- Sequential: Traditional execution, block on potential conflicts
Variants§
AllowAll
Allow all issues (for FactionBoard / fully speculative execution) Conflicts will be detected at compose/merge time
BlockFatalOnly
Block only fatal errors (for speculative execution) Conflicts are allowed, will be resolved at merge time
BlockConflicts
Block conflicts and fatal errors (for sequential execution) Only warnings and info are allowed
Strict
Block all issues including warnings (for debugging / strict mode)
Implementations§
Source§impl ValidationStrategy
impl ValidationStrategy
Sourcepub fn can_proceed(&self, result: &ValidationResult) -> bool
pub fn can_proceed(&self, result: &ValidationResult) -> bool
Check if execution can proceed given the validation result
Sourcepub fn blocking_level(&self) -> Option<ValidationLevel>
pub fn blocking_level(&self) -> Option<ValidationLevel>
Get the minimum blocking level for this strategy
Trait Implementations§
Source§impl Clone for ValidationStrategy
impl Clone for ValidationStrategy
Source§fn clone(&self) -> ValidationStrategy
fn clone(&self) -> ValidationStrategy
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 ValidationStrategy
impl Debug for ValidationStrategy
Source§impl Default for ValidationStrategy
impl Default for ValidationStrategy
Source§fn default() -> ValidationStrategy
fn default() -> ValidationStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidationStrategy
impl<'de> Deserialize<'de> for ValidationStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationStrategy
impl PartialEq for ValidationStrategy
Source§fn eq(&self, other: &ValidationStrategy) -> bool
fn eq(&self, other: &ValidationStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidationStrategy
impl Serialize for ValidationStrategy
impl Copy for ValidationStrategy
impl Eq for ValidationStrategy
impl StructuralPartialEq for ValidationStrategy
Auto Trait Implementations§
impl Freeze for ValidationStrategy
impl RefUnwindSafe for ValidationStrategy
impl Send for ValidationStrategy
impl Sync for ValidationStrategy
impl Unpin for ValidationStrategy
impl UnsafeUnpin for ValidationStrategy
impl UnwindSafe for ValidationStrategy
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