pub struct PipelineContext<'a, S: MessageStore> {
pub registry: &'a DialectRegistry,
pub store: &'a S,
pub policy: UnknownPredecessorPolicy,
}Expand description
Runtime context for the full pipeline (REQ-231).
Provides the dialect registry and message store needed for causal
verification (step 6a) and shape checking (step 6b), plus the policy that
governs how VerificationResult::Unknown is handled (REQ-305).
Fields§
§registry: &'a DialectRegistry§store: &'a S§policy: UnknownPredecessorPolicyPolicy applied when a :caused-by hash is not yet present in the
store. Defaults to UnknownPredecessorPolicy::Reject when callers
use the PipelineContext::new constructor.
Implementations§
Source§impl<'a, S: MessageStore> PipelineContext<'a, S>
impl<'a, S: MessageStore> PipelineContext<'a, S>
Sourcepub fn new(registry: &'a DialectRegistry, store: &'a S) -> Self
pub fn new(registry: &'a DialectRegistry, store: &'a S) -> Self
Create a context with the default Reject policy.
Sourcepub fn with_policy(
registry: &'a DialectRegistry,
store: &'a S,
policy: UnknownPredecessorPolicy,
) -> Self
pub fn with_policy( registry: &'a DialectRegistry, store: &'a S, policy: UnknownPredecessorPolicy, ) -> Self
Create a context with an explicit policy.
Auto Trait Implementations§
impl<'a, S> Forget for PipelineContext<'a, S>
impl<'a, S> Freeze for PipelineContext<'a, S>
impl<'a, S> Move for PipelineContext<'a, S>
impl<'a, S> RefUnwindSafe for PipelineContext<'a, S>
impl<'a, S> Send for PipelineContext<'a, S>
impl<'a, S> Sync for PipelineContext<'a, S>where
S: Sync,
RawVecInner: Sync,
NodeRef<Owned, String, SExpr, LeafOrInternal>: Sync,
BoxRaw<(String, SExpr)>: Sync,
NodeRef<Owned, String, SetValZST, LeafOrInternal>: Sync,
BoxRaw<(String, SetValZST)>: Sync,
NodeRef<Owned, String, StepDecl, LeafOrInternal>: Sync,
BoxRaw<(String, StepDecl)>: Sync,
Arc<Node>: Sync,
NodeRef<Owned, String, BTreeSet<String>, LeafOrInternal>: Sync,
BoxRaw<(String, BTreeSet<String>)>: Sync,
BoxRaw<Definition>: Sync,
BoxRaw<Lift>: Sync,
BoxRaw<CounterRule>: Sync,
BoxRaw<Value>: Sync,
impl<'a, S> Unpin for PipelineContext<'a, S>
impl<'a, S> UnsafeUnpin for PipelineContext<'a, S>
impl<'a, S> UnwindSafe for PipelineContext<'a, S>
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