Skip to main content

Node

Trait Node 

Source
pub trait Node: 'static {
    // Required methods
    fn spec(&self) -> NodeSpec;
    fn start(self: Box<Self>, io: Io) -> NodeFuture;
}
Expand description

A decoder, or any other step of a decode graph.

Required Methods§

Source

fn spec(&self) -> NodeSpec

The node’s ports.

Source

fn start(self: Box<Self>, io: Io) -> NodeFuture

Binds the ports and returns the future that runs the node until its input ends.

Trait Implementations§

Source§

impl Node for Box<dyn Node>

Source§

fn spec(&self) -> NodeSpec

The node’s ports.
Source§

fn start(self: Box<Self>, io: Io) -> NodeFuture

Binds the ports and returns the future that runs the node until its input ends.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl Node for Box<dyn Node>

Source§

fn spec(&self) -> NodeSpec

Source§

fn start(self: Box<Self>, io: Io) -> NodeFuture

Implementors§