Files @ 95e019faaf52
Branch filter:

Location: CSY/reowolf/src/runtime2/component/component_ip.rs - annotation

95e019faaf52 692 B application/rls-services+xml Show Source Show as Raw Download as Raw
mh
Getting builtin component instantiation to compile
use crate::protocol::eval::*;
use crate::runtime2::*;
use super::*;

/// TODO: Temporary component to figure out what to do with custom components.
///     This component sends random numbers between two u32 limits
struct ComponentRandSend {
}

impl Component for ComponentRandSend {
    fn adopt_message(&mut self, _comp_ctx: &mut CompCtx, _message: DataMessage) {
        unreachable!("should not adopt messages");
    }

    fn handle_message(&mut self, sched_ctx: &mut SchedulerCtx, comp_ctx: &mut CompCtx, message: Message) {
        todo!()
    }

    fn run(&mut self, sched_ctx: &mut SchedulerCtx, comp_ctx: &mut CompCtx) -> Result<CompScheduling, EvalError> {
        todo!()
    }
}