Struct anchor_chain::chain::LinkedChainBuilder  
source · pub struct LinkedChainBuilder<I, L> { /* private fields */ }Expand description
A builder for constructing a Chain of nodes using Link.
LinkedChainBuilder takes an initial node and allows for incremental
construction of a processing chain, adding nodes one at a time. New nodes
are linked to the previous nodes using nested Link instances.
Implementations§
source§impl<I, L> LinkedChainBuilder<I, L>
 
impl<I, L> LinkedChainBuilder<I, L>
sourcepub fn link<N>(self, next: N) -> LinkedChainBuilder<I, Link<L, N>>
 
pub fn link<N>(self, next: N) -> LinkedChainBuilder<I, Link<L, N>>
Adds a new node to the chain, linking it to the previous node.
sourcepub fn link_with_state<N, K, V>(
    self,
    next: N
) -> StatefulLinkedChainBuilder<I, StatefulLink<L, N, K, V>, K, V>
 
pub fn link_with_state<N, K, V>( self, next: N ) -> StatefulLinkedChainBuilder<I, StatefulLink<L, N, K, V>, K, V>
Adds a new StatefulNode to the chain, linking it to the previous
node. A new StateManager will also be created that will be passed
to all stateful nodes in the chain.
Auto Trait Implementations§
impl<I, L> Freeze for LinkedChainBuilder<I, L>where
    L: Freeze,
impl<I, L> RefUnwindSafe for LinkedChainBuilder<I, L>where
    L: RefUnwindSafe,
    I: RefUnwindSafe,
impl<I, L> Send for LinkedChainBuilder<I, L>
impl<I, L> Sync for LinkedChainBuilder<I, L>
impl<I, L> Unpin for LinkedChainBuilder<I, L>
impl<I, L> UnwindSafe for LinkedChainBuilder<I, L>where
    L: UnwindSafe,
    I: UnwindSafe,
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