diff --git a/src/runtime/mod.rs b/src/runtime/mod.rs index 70d2abeb9c473ae97ea2adc2291709d10f620a06..8c8d0e72082ce9c9c4e222bc469ec3f4df79954a 100644 --- a/src/runtime/mod.rs +++ b/src/runtime/mod.rs @@ -40,6 +40,13 @@ pub(crate) struct SyncProtoContext<'a> { branch_inner: &'a mut ProtoComponentBranchInner, // sub-structure of component branch predicate: &'a Predicate, // KEY in pred->branch map } +#[derive(Debug)] +pub(crate) struct UdpEndpointExt { + sock: UdpSocket, // already bound and connected + received_from_this_round: Option, + outgoing_payloads: HashMap, + getter_for_incoming: PortId, +} #[derive(Default, Debug, Clone)] struct ProtoComponentBranchInner { untaken_choice: Option, @@ -206,13 +213,6 @@ struct EndpointStore { endpoint_exts: Vec, polled_undrained: VecSet, } -#[derive(Debug)] -struct UdpEndpointExt { - sock: UdpSocket, // already bound and connected - received_this_round: bool, - outgoing_payloads: HashMap, - getter_for_incoming: PortId, -} #[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] struct PortInfo { polarities: HashMap,