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§
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<()>
Sourcefn i_know_what_im_doing_with_this_manual_impl(&mut self)
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.