Node

Trait Node 

Source
pub trait Node<'a>:
    PyClass
    + Default
    + Sync
    + Send {
    type In: InputPort<'a>;
    type Out: OutputPort<'a>;

    const CATEGORY: &'static str;
    const DESCRIPTION: &'static str;

    // Required method
    fn execute(&self, input: Self::In) -> NodeResult<'a, Self>;

    // Provided methods
    fn initialize_input(
        &'a self,
        kwargs: Option<&'a Bound<'a, PyDict>>,
    ) -> Self::In { ... }
    fn new() -> Self { ... }
}

Required Associated Constants§

Source

const CATEGORY: &'static str

Source

const DESCRIPTION: &'static str

Required Associated Types§

Required Methods§

Source

fn execute(&self, input: Self::In) -> NodeResult<'a, Self>

Provided Methods§

Source

fn initialize_input(&'a self, kwargs: Option<&'a Bound<'a, PyDict>>) -> Self::In

Source

fn new() -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§