diff --git a/src/common.rs b/src/common.rs index 45ca68a770a7b7f52b58a95913cd7dc2ca76023c..a712288779b10a1995443ee22c188860f279c50f 100644 --- a/src/common.rs +++ b/src/common.rs @@ -68,6 +68,13 @@ pub enum Polarity { Putter, // output port (from the perspective of the component) Getter, // input port (from the perspective of the component) } +#[derive( + Debug, Eq, PartialEq, Clone, Hash, Copy, Ord, PartialOrd, serde::Serialize, serde::Deserialize, +)] +pub enum EndpointPolarity { + Active, // calls connect() + Passive, // calls bind() listen() accept() +} #[derive(Eq, PartialEq, Copy, Clone, Debug)] pub enum AddComponentError {