Trait protoflow_core::BlockDescriptor

source ·
pub trait BlockDescriptor {
    // Provided methods
    fn name(&self) -> Option<String> { ... }
    fn label(&self) -> Option<String> { ... }
    fn inputs(&self) -> Vec<PortDescriptor> { ... }
    fn outputs(&self) -> Vec<PortDescriptor> { ... }
}
Expand description

A block is an autonomous unit of computation in a system.

Provided Methods§

source

fn name(&self) -> Option<String>

The machine-readable name of this block.

source

fn label(&self) -> Option<String>

A human-readable label for this block.

source

fn inputs(&self) -> Vec<PortDescriptor>

A description of this block’s input ports.

source

fn outputs(&self) -> Vec<PortDescriptor>

A description of this block’s output ports.

Implementors§