Files @ 5babd5401b1e
Branch filter:

Location: CSY/reowolf/src/runtime2/component/component.rs

5babd5401b1e 332 B application/rls-services+xml Show Annotation Show as Raw Download as Raw
MH
Moved around definitions, started on component trait
use crate::runtime2::*;
use super::CompCtx;

pub enum CompScheduling {
    Immediate,
    Requeue,
    Sleep,
    Exit,
}

pub(crate) trait Component {
    fn handle_message(sched_ctx: &mut SchedulerCtx, comp_ctx: &mut CompCtx, message: Message);
    fn run(sched_ctx: &mut SchedulerCtx, comp_ctx: &mut CompCtx) -> CompScheduling;
}