diff --git a/zenoh/src/api/publisher.rs b/zenoh/src/api/publisher.rs index 2b13ee32af..0c52d24857 100644 --- a/zenoh/src/api/publisher.rs +++ b/zenoh/src/api/publisher.rs @@ -199,6 +199,13 @@ impl<'a> Publisher<'a> { self.priority } + /// Get the reliability applied when routing the data + #[zenoh_macros::unstable] + #[inline] + pub fn reliability(&self) -> Reliability { + self.reliability + } + /// Consumes the given `Publisher`, returning a thread-safe reference-counting /// pointer to it (`Arc`). This is equivalent to `Arc::new(Publisher)`. ///