diff --git a/src/runtime/mod.rs b/src/runtime/mod.rs index 8c3629e2eb715bc1ab2241594ec80afbebe396b2..ba3908e2bf87d684844ef0044ec1374b6eec2f34 100644 --- a/src/runtime/mod.rs +++ b/src/runtime/mod.rs @@ -49,18 +49,17 @@ pub struct Unconfigured { pub controller_id: ControllerId, } #[derive(Debug)] +pub struct Configured { + controller_id: ControllerId, + bindings: HashMap, + protocol_description: Arc, +} +#[derive(Debug)] pub struct Connected { native_interface: Vec<(Key, Polarity)>, sync_batches: Vec, controller: Controller, } -#[derive(Debug)] -pub struct Configured { - // invariant: proto_maybe_bindings.len() is the size of the protocol's interface - controller_id: ControllerId, - proto_maybe_bindings: Vec<(Polarity, Option)>, - protocol_description: Arc, -} #[derive(Debug, Copy, Clone)] pub enum PortBinding {