async-flow 0.1.5

Async abstractions for flow-based programming (FBP).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This is free and unencumbered software released into the public domain.

use super::{InputPortId, OutputPortId};
use alloc::vec::Vec;

pub use dogma::Named as BlockName;

/// A block definition.
pub trait BlockDefinition: BlockName {
    fn inputs(&self) -> Vec<InputPortId> {
        Vec::new()
    }

    fn outputs(&self) -> Vec<OutputPortId> {
        Vec::new()
    }
}