Struct protoflow_core::System
source · pub struct System<X: Transport + Default + 'static = MockTransport> { /* private fields */ }
Expand description
A system is a collection of blocks that are connected together.
Implementations§
source§impl<X: Transport + Default + 'static> System<X>
impl<X: Transport + Default + 'static> System<X>
sourcepub fn new(runtime: &Arc<StdRuntime<X>>) -> Self
pub fn new(runtime: &Arc<StdRuntime<X>>) -> Self
Instantiates a new system.
pub fn execute(self) -> BlockResult<Rc<dyn Process>>
sourcepub fn output<M: Message + Clone + 'static>(&self) -> OutputPort<M>
pub fn output<M: Message + Clone + 'static>(&self) -> OutputPort<M>
Creates a new output port.
Auto Trait Implementations§
impl<X = MockTransport> !Freeze for System<X>
impl<X = MockTransport> !RefUnwindSafe for System<X>
impl<X> Send for System<X>
impl<X = MockTransport> !Sync for System<X>
impl<X> Unpin for System<X>where
X: Unpin,
impl<X = MockTransport> !UnwindSafe for System<X>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more