Skip to content

Commit bdcb99c

Browse files
committed
feat: add reliability getter to publisher
1 parent e72e4d4 commit bdcb99c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

zenoh/src/api/publisher.rs

+7
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ impl<'a> Publisher<'a> {
199199
self.priority
200200
}
201201

202+
/// Get the reliability applied when routing the data
203+
#[zenoh_macros::unstable]
204+
#[inline]
205+
pub fn reliability(&self) -> Reliability {
206+
self.reliability
207+
}
208+
202209
/// Consumes the given `Publisher`, returning a thread-safe reference-counting
203210
/// pointer to it (`Arc<Publisher>`). This is equivalent to `Arc::new(Publisher)`.
204211
///

0 commit comments

Comments
 (0)