diff --git a/src/runtime2/communication.rs b/src/runtime2/communication.rs index c092fc99311d9c12835221b9707fe1e20b6827be..cebb7b67d319eb1fb2106c9ac06857d5a575659f 100644 --- a/src/runtime2/communication.rs +++ b/src/runtime2/communication.rs @@ -17,11 +17,6 @@ impl PortId { } } -pub struct CompPortIds { - pub comp: CompId, - pub port: PortId, -} - #[derive(Debug, PartialEq, Eq, Clone, Copy)] pub enum PortKind { Putter, @@ -202,6 +197,7 @@ pub enum Message { Data(DataMessage), Sync(SyncMessage), Control(ControlMessage), + Poll, } impl Message { @@ -213,6 +209,8 @@ impl Message { return v.target_port_id, Message::Sync(_) => return None, + Message::Poll => + return None, } } @@ -223,6 +221,7 @@ impl Message { Message::Control(v) => v.target_port_id = Some(port_id), Message::Sync(_) => unreachable!(), // should never be called for this message type + Message::Poll => unreachable!(), } } }