Struct anchor_chain::Link 
source · pub struct Link<C, N>{
    pub node: C,
    pub next: N,
}Expand description
A link in a processing chain that connects one Node to another.
Link serves as a container for chaining two Node instances together,
where the output of the first node is fed as the input to the next.
Fields§
§node: CThe first node in the chain.
next: NThe next node or link in the chain.
Implementations§
Trait Implementations§
source§impl<C, N> Node for Link<C, N>
 
impl<C, N> Node for Link<C, N>
source§fn process<'life0, 'async_trait>(
    &'life0 self,
    input: Self::Input
) -> Pin<Box<dyn Future<Output = Result<Self::Output, AnchorChainError>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn process<'life0, 'async_trait>(
    &'life0 self,
    input: Self::Input
) -> Pin<Box<dyn Future<Output = Result<Self::Output, AnchorChainError>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Processes the given input through the chain of nodes.
First, the input is processed by the current node. Then, the output of the current node is passed to the next node or link in the chain for further processing.
Auto Trait Implementations§
impl<C, N> Freeze for Link<C, N>
impl<C, N> RefUnwindSafe for Link<C, N>where
    C: RefUnwindSafe,
    N: RefUnwindSafe,
impl<C, N> Send for Link<C, N>
impl<C, N> Sync for Link<C, N>
impl<C, N> Unpin for Link<C, N>
impl<C, N> UnwindSafe for Link<C, N>where
    C: UnwindSafe,
    N: 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