protoflow_blocks/
block_connections.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
// This is free and unencumbered software released into the public domain.

use super::{prelude::Vec, InputPortName, OutputPortName};

/// A trait for defining the connections of a block instance.
pub trait BlockConnections {
    fn input_connections(&self) -> Vec<(&'static str, Option<InputPortName>)> {
        unimplemented!()
    }

    fn output_connections(&self) -> Vec<(&'static str, Option<OutputPortName>)> {
        unimplemented!()
    }
}