[][src]Trait kompact::prelude::ComponentDefinition

pub trait ComponentDefinition: Provide<ControlPort> + ActorRaw + Send where
    Self: Sized
{ fn setup(&mut self, self_component: Arc<Component<Self>>);
fn execute(&mut self, max_events: usize, skip: usize) -> ExecuteResult;
fn ctx(&self) -> &ComponentContext<Self>;
fn ctx_mut(&mut self) -> &mut ComponentContext<Self>;
fn type_name() -> &'static str; }

Required methods

fn setup(&mut self, self_component: Arc<Component<Self>>)

fn execute(&mut self, max_events: usize, skip: usize) -> ExecuteResult

fn ctx(&self) -> &ComponentContext<Self>

fn ctx_mut(&mut self) -> &mut ComponentContext<Self>

fn type_name() -> &'static str

Loading content...

Implementors

impl ComponentDefinition for DeadletterBox[src]

impl ComponentDefinition for LocalDispatcher[src]

impl ComponentDefinition for NetworkDispatcher[src]

Loading content...