pub struct EvidenceGateConfig {
pub enabled: bool,
pub checks: Vec<CheckSpec>,
pub max_retries: u64,
pub counters: Arc<EvidenceGateCounters>,
}Expand description
Evidence-gate tuning. Default is disabled — built-in behavior is unchanged until a caller mounts a gate explicitly.
Fields§
§enabled: boolDefault false: no gate runs, no verdict events are appended.
checks: Vec<CheckSpec>The closed v1 check vocabulary; an empty list is a vacuous pass.
max_retries: u64How many extra loop iterations a failed gate may buy (bounded
recovery, constraint 8). 0 = one failure settles immediately.
counters: Arc<EvidenceGateCounters>Shared verdict counters for the metrics surface; not configuration.
Trait Implementations§
Source§impl Clone for EvidenceGateConfig
impl Clone for EvidenceGateConfig
Source§impl Debug for EvidenceGateConfig
impl Debug for EvidenceGateConfig
Source§impl Default for EvidenceGateConfig
impl Default for EvidenceGateConfig
Source§impl<'de> Deserialize<'de> for EvidenceGateConfig
impl<'de> Deserialize<'de> for EvidenceGateConfig
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 EvidenceGateConfig
Config identity ignores the shared counters handle (runtime state, not
configuration).
impl PartialEq for EvidenceGateConfig
Config identity ignores the shared counters handle (runtime state, not configuration).
Auto Trait Implementations§
impl Forget for EvidenceGateConfig
impl Freeze for EvidenceGateConfigwhere
*const u8 is !null: Freeze,
PhantomData<CheckSpec>: Freeze,
*const ArcInner<EvidenceGateCounters> is !null: Freeze,
PhantomData<ArcInner<EvidenceGateCounters>>: Freeze,
impl Move for EvidenceGateConfig
impl RefUnwindSafe for EvidenceGateConfig
impl Send for EvidenceGateConfig
impl Sync for EvidenceGateConfig
impl Unpin for EvidenceGateConfig
impl UnsafeUnpin for EvidenceGateConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<CheckSpec>: UnsafeUnpin,
*const ArcInner<EvidenceGateCounters> is !null: UnsafeUnpin,
PhantomData<ArcInner<EvidenceGateCounters>>: UnsafeUnpin,
impl UnwindSafe for EvidenceGateConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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