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 new() -> PipelineBuilder<B, P, T, D>
pub fn new() -> PipelineBuilder<B, P, T, D>
Creates a new pipeline builder.
Sourcepub fn rollup_config(
self,
rollup_config: Arc<RollupConfig>,
) -> PipelineBuilder<B, P, T, D>
pub fn rollup_config( self, rollup_config: Arc<RollupConfig>, ) -> PipelineBuilder<B, P, T, D>
Sets the rollup config for the pipeline.
Sourcepub const fn origin(self, origin: BlockInfo) -> PipelineBuilder<B, P, T, D>
pub const fn origin(self, origin: BlockInfo) -> PipelineBuilder<B, P, T, D>
Sets the origin L1 block for the pipeline.
Sourcepub fn dap_source(self, dap_source: D) -> PipelineBuilder<B, P, T, D>
pub fn dap_source(self, dap_source: D) -> PipelineBuilder<B, P, T, D>
Sets the data availability provider for the pipeline.
Sourcepub fn builder(self, builder: B) -> PipelineBuilder<B, P, T, D>
pub fn builder(self, builder: B) -> PipelineBuilder<B, P, T, D>
Sets the builder for the pipeline.
Sourcepub fn l2_chain_provider(
self,
l2_chain_provider: T,
) -> PipelineBuilder<B, P, T, D>
pub fn l2_chain_provider( self, l2_chain_provider: T, ) -> PipelineBuilder<B, P, T, D>
Sets the l2 chain provider for the pipeline.
Sourcepub fn chain_provider(self, chain_provider: P) -> PipelineBuilder<B, P, T, D>
pub fn chain_provider(self, chain_provider: P) -> PipelineBuilder<B, P, T, D>
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: Debug + AttributesBuilder + Send,
P: Debug + ChainProvider + Send + Sync,
T: Debug + L2ChainProvider + Clone + Send + Sync,
D: Debug + DataAvailabilityProvider + Send + Sync,
impl<B, P, T, D> Debug for PipelineBuilder<B, P, T, D>where
B: Debug + AttributesBuilder + Send,
P: Debug + ChainProvider + Send + Sync,
T: Debug + L2ChainProvider + Clone + Send + Sync,
D: Debug + DataAvailabilityProvider + Send + Sync,
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§fn default() -> PipelineBuilder<B, P, T, D>
fn default() -> PipelineBuilder<B, P, T, D>
Returns the “default value” for a type. Read more
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>,
) -> DerivationPipeline<AttributesQueue<BatchProvider<BatchStream<ChannelReader<ChannelProvider<FrameQueue<L1Retrieval<D, L1Traversal<P>>>>>, T>, T>, B>, T> ⓘ
fn from( builder: PipelineBuilder<B, P, T, D>, ) -> DerivationPipeline<AttributesQueue<BatchProvider<BatchStream<ChannelReader<ChannelProvider<FrameQueue<L1Retrieval<D, L1Traversal<P>>>>>, T>, T>, B>, T> ⓘ
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
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