[][src]Trait kompact::component::CoreContainer

pub trait CoreContainer: Send + Sync {
    fn id(&self) -> &Uuid;
fn core(&self) -> &ComponentCore;
fn execute(&self);
fn control_port(&self) -> ProvidedRef<ControlPort>;
fn schedule(&self);
fn type_name(&self) -> &'static str; fn system(&self) -> &KompactSystem { ... } }

A trait for abstracting over structures that contain a component core

Used for implementing scheduling and execution logic, such as Scheduler.

Required methods

fn id(&self) -> &Uuid

Returns the component's unique id

fn core(&self) -> &ComponentCore

Returns a reference to the actual component core

fn execute(&self)

Executes this component on the current thread

fn control_port(&self) -> ProvidedRef<ControlPort>

Returns a reference to this component's control port

fn schedule(&self)

Schedules this component on its associated scheduler

fn type_name(&self) -> &'static str

The descriptive string of the ComponentDefinition type wrapped in this container

Loading content...

Provided methods

fn system(&self) -> &KompactSystem

Returns this component's system

Loading content...

Trait Implementations

impl Debug for dyn CoreContainer[src]

Implementors

impl<C: ComponentDefinition + Sized> CoreContainer for Component<C>[src]

Loading content...