pub struct PipelineBuilder<B, P, T, D>where
B: AttributesBuilder + Send + Debug,
P: ChainProvider + Send + Sync + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug,{ /* private fields */ }
Expand description
The PipelineBuilder
constructs a DerivationPipeline using a builder pattern.
Implementations§
Source§impl<B, P, T, D> PipelineBuilder<B, P, T, D>where
B: AttributesBuilder + Send + Debug,
P: ChainProvider + Send + Sync + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug,
impl<B, P, T, D> PipelineBuilder<B, P, T, D>where
B: AttributesBuilder + Send + Debug,
P: ChainProvider + Send + Sync + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug,
Sourcepub fn rollup_config(self, rollup_config: Arc<RollupConfig>) -> Self
pub fn rollup_config(self, rollup_config: Arc<RollupConfig>) -> Self
Sets the rollup config for the pipeline.
Sourcepub const fn origin(self, origin: BlockInfo) -> Self
pub const fn origin(self, origin: BlockInfo) -> Self
Sets the origin L1 block for the pipeline.
Sourcepub fn dap_source(self, dap_source: D) -> Self
pub fn dap_source(self, dap_source: D) -> Self
Sets the data availability provider for the pipeline.
Sourcepub fn l2_chain_provider(self, l2_chain_provider: T) -> Self
pub fn l2_chain_provider(self, l2_chain_provider: T) -> Self
Sets the l2 chain provider for the pipeline.
Sourcepub fn chain_provider(self, chain_provider: P) -> Self
pub fn chain_provider(self, chain_provider: P) -> Self
Sets the chain provider for the pipeline.
Sourcepub fn build(
self,
) -> DerivationPipeline<AttributesQueue<BatchProvider<BatchStream<ChannelReader<ChannelProvider<FrameQueue<L1Retrieval<D, L1Traversal<P>>>>>, T>, T>, B>, T> ⓘ
pub fn build( self, ) -> DerivationPipeline<AttributesQueue<BatchProvider<BatchStream<ChannelReader<ChannelProvider<FrameQueue<L1Retrieval<D, L1Traversal<P>>>>>, T>, T>, B>, T> ⓘ
Builds the pipeline.
Trait Implementations§
Source§impl<B, P, T, D> Debug for PipelineBuilder<B, P, T, D>where
B: AttributesBuilder + Send + Debug + Debug,
P: ChainProvider + Send + Sync + Debug + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug + Debug,
impl<B, P, T, D> Debug for PipelineBuilder<B, P, T, D>where
B: AttributesBuilder + Send + Debug + Debug,
P: ChainProvider + Send + Sync + Debug + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug + Debug,
Source§impl<B, P, T, D> Default for PipelineBuilder<B, P, T, D>where
B: AttributesBuilder + Send + Debug,
P: ChainProvider + Send + Sync + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug,
impl<B, P, T, D> Default for PipelineBuilder<B, P, T, D>where
B: AttributesBuilder + Send + Debug,
P: ChainProvider + Send + Sync + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug,
Source§impl<B, P, T, D> From<PipelineBuilder<B, P, T, D>> for DerivationPipeline<AttributesQueue<BatchProvider<BatchStream<ChannelReader<ChannelProvider<FrameQueue<L1Retrieval<D, L1Traversal<P>>>>>, T>, T>, B>, T>where
B: AttributesBuilder + Send + Debug,
P: ChainProvider + Send + Sync + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug,
impl<B, P, T, D> From<PipelineBuilder<B, P, T, D>> for DerivationPipeline<AttributesQueue<BatchProvider<BatchStream<ChannelReader<ChannelProvider<FrameQueue<L1Retrieval<D, L1Traversal<P>>>>>, T>, T>, B>, T>where
B: AttributesBuilder + Send + Debug,
P: ChainProvider + Send + Sync + Debug,
T: L2ChainProvider + Clone + Send + Sync + Debug,
D: DataAvailabilityProvider + Send + Sync + Debug,
Source§fn from(builder: PipelineBuilder<B, P, T, D>) -> Self
fn from(builder: PipelineBuilder<B, P, T, D>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<B, P, T, D> Freeze for PipelineBuilder<B, P, T, D>
impl<B, P, T, D> RefUnwindSafe for PipelineBuilder<B, P, T, D>
impl<B, P, T, D> Send for PipelineBuilder<B, P, T, D>
impl<B, P, T, D> Sync for PipelineBuilder<B, P, T, D>where
B: Sync,
impl<B, P, T, D> Unpin for PipelineBuilder<B, P, T, D>
impl<B, P, T, D> UnwindSafe for PipelineBuilder<B, P, T, D>
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