Trait FlowNodeBase

Source
pub trait FlowNodeBase {
    type Request: Serialize + DeserializeOwned;

    // Required methods
    fn imports(&mut self, ctx: &mut ImportCtx<'_>);
    fn emit(
        &mut self,
        requests: Vec<Self::Request>,
        ctx: &mut NodeCtx<'_>,
    ) -> Result<()>;
    fn i_know_what_im_doing_with_this_manual_impl(&mut self);
}
Expand description

The base underlying implementation of all FlowNode variants.

Do not implement this directly! Use the new_flow_node! family of macros instead!

Required Associated Types§

Required Methods§

Source

fn imports(&mut self, ctx: &mut ImportCtx<'_>)

Source

fn emit( &mut self, requests: Vec<Self::Request>, ctx: &mut NodeCtx<'_>, ) -> Result<()>

Source

fn i_know_what_im_doing_with_this_manual_impl(&mut self)

A noop method that all human-written impls of FlowNodeBase are required to implement.

By implementing this method, you’re stating that you “know what you’re doing” by having this manual impl.

Implementors§