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§
Sourcefn start(self: Box<Self>, io: Io) -> NodeFuture
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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".