pub struct PassthroughNode { /* private fields */ }Expand description
Passthrough node - just passes state through unchanged
Implementations§
Trait Implementations§
Source§impl Node for PassthroughNode
impl Node for PassthroughNode
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 NodeContext,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 NodeContext,
) -> Pin<Box<dyn Future<Output = Result<NodeOutput>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the node and return state updates
Source§fn execute_stream<'a>(
&'a self,
ctx: &'a NodeContext,
) -> Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send + 'a>>
fn execute_stream<'a>( &'a self, ctx: &'a NodeContext, ) -> Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send + 'a>>
Stream execution events (default: wraps execute)
Auto Trait Implementations§
impl Freeze for PassthroughNode
impl RefUnwindSafe for PassthroughNode
impl Send for PassthroughNode
impl Sync for PassthroughNode
impl Unpin for PassthroughNode
impl UnwindSafe for PassthroughNode
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