Skip to main content

Crate pipe_it

Crate pipe_it 

Source

Re-exports§

pub extern crate pipeit_derive;

Modules§

concurrency
dep
ext
handler
sink
tag

Macros§

tag

Structs§

Alt
A wrapper for alternative pipeline execution.
Cond
A pipeline that executes only if a predicate on the input is met.
Context
The execution context for a pipeline, carrying both shared dependencies and the specific input.
Input
A wrapper for the primary input data of the pipeline.
Res
A read-only resource container that mirrors Bevy’s Res. It holds an owned read lock on a shared dependency and provides strong typing via Deref.
ResMut
A mutable resource container that mirrors Bevy’s ResMut. It holds an owned write lock on a shared dependency and provides strong typing via Deref/DerefMut.
Shared
A collection of shared resources that can be injected into pipeline functions.

Enums§

PipelineError
Errors occurring during pipeline execution.

Traits§

FromContext
A trait for types that can be extracted from a Context. Similar to Axum’s FromRequest or Bevy’s SystemParam.
Pipeline
Represents a pipeline unit that can be applied to a Context. Implementations are automatically provided for functions that match the signature.

Functions§

alt
Creates a new Alt pipeline wrapper. The provided tuple of pipelines will be executed in order. If a pipeline fails (returns Err), the next one is tried.
cond
Creates a conditional pipeline. If the predicate returns true, the next pipeline is executed. If false, it returns a PipelineError::Failure.
identity
An identity pipeline that simply returns the current input. This acts as a neutral element in pipeline composition.
identity_res
An identity pipeline that returns the current input wrapped in a successful Result. Useful as a terminal fallback in a choice-based pipeline (tuple).

Type Aliases§

PResult
Standard Result type for pipeline operations.

Attribute Macros§

node
Attribute macro to tag a function as a pipeline node. Usage: #[node(“name”)]