Trait protoflow_blocks::SystemBuilding
source · pub trait SystemBuilding {
// Required methods
fn input<M>(&self) -> InputPort<M>
where M: Message + 'static;
fn output<M>(&self) -> OutputPort<M>
where M: Message + 'static;
fn block<B>(&self, block: B) -> B
where B: Block + Clone + 'static;
fn connect<M>(&self, source: &OutputPort<M>, target: &InputPort<M>) -> bool
where M: Message;
}Required Methods§
sourcefn input<M>(&self) -> InputPort<M>where
M: Message + 'static,
fn input<M>(&self) -> InputPort<M>where
M: Message + 'static,
Creates a new input port inside the system.
sourcefn output<M>(&self) -> OutputPort<M>where
M: Message + 'static,
fn output<M>(&self) -> OutputPort<M>where
M: Message + 'static,
Creates a new output port inside the system.
Object Safety§
This trait is not object safe.