From eb7987709d381ac57bb39545fff40f82d301ebf3 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Mon, 19 Feb 2024 16:09:34 +0100 Subject: [PATCH] - add docstrings - remove inner type accessor --- zenoh/src/sample.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/zenoh/src/sample.rs b/zenoh/src/sample.rs index f55e5175bf..db55bce522 100644 --- a/zenoh/src/sample.rs +++ b/zenoh/src/sample.rs @@ -526,6 +526,7 @@ pub struct QoS { } impl QoS { + /// Get priority of the message. pub fn priority(&self) -> Priority { let priority = match Priority::try_from(self.inner.get_priority()) { Ok(p) => p, @@ -540,17 +541,15 @@ impl QoS { priority } + /// Get congestion control of the message. pub fn congestion_control(&self) -> CongestionControl { self.inner.get_congestion_control() } + /// Get express flag value. If true, the message is not batched during transmission, in order to reduce latency. pub fn express(&self) -> bool { self.inner.is_express() } - - pub(crate) fn inner(&self) -> QoSType { - self.inner - } } impl From for QoS {