Skip to main content

PipelineContext

Struct PipelineContext 

Source
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: UnknownPredecessorPolicy

Policy 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>

Source

pub fn new(registry: &'a DialectRegistry, store: &'a S) -> Self

Create a context with the default Reject policy.

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.