diff --git a/commons/zenoh-protocol/src/core/mod.rs b/commons/zenoh-protocol/src/core/mod.rs index 2a02ac4c32..5d20e65ea8 100644 --- a/commons/zenoh-protocol/src/core/mod.rs +++ b/commons/zenoh-protocol/src/core/mod.rs @@ -561,7 +561,7 @@ impl Channel { } /// Congestion control strategy. -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Deserialize)] +#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Hash, Deserialize)] #[repr(u8)] pub enum CongestionControl { #[default] diff --git a/zenoh/src/api/publisher.rs b/zenoh/src/api/publisher.rs index 674c1c34e9..cd0653aa33 100644 --- a/zenoh/src/api/publisher.rs +++ b/zenoh/src/api/publisher.rs @@ -419,7 +419,7 @@ impl Sink for Publisher<'_> { /// If QoS is enabled, Zenoh keeps one transmission queue per [`Priority`] P, where all messages in /// the queue have [`Priority`] P. These queues are serviced in the order of their assigned /// [`Priority`] (i.e. from [`Priority::RealTime`] to [`Priority::Background`]). -#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Deserialize)] +#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Hash, Deserialize)] #[repr(u8)] pub enum Priority { RealTime = 1,