From 0ca41e817044e80a6c422122f46aa3e60821ce64 Mon Sep 17 00:00:00 2001 From: Denis Biryukov Date: Wed, 13 Mar 2024 15:26:19 +0100 Subject: [PATCH] mark remaining sample-mutating methods as unstable and hidden --- zenoh/src/sample.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zenoh/src/sample.rs b/zenoh/src/sample.rs index 1ac04313ab..9b9c55822e 100644 --- a/zenoh/src/sample.rs +++ b/zenoh/src/sample.rs @@ -520,10 +520,12 @@ impl Sample { self } - #[inline] /// Ensure that an associated Timestamp is present in this Sample. /// If not, a new one is created with the current system time and 0x00 as id. /// Get the timestamp of this sample (either existing one or newly created) + #[inline] + #[doc(hidden)] + #[zenoh_macros::unstable] pub fn ensure_timestamp(&mut self) -> &Timestamp { if let Some(ref timestamp) = self.timestamp { timestamp @@ -542,8 +544,9 @@ impl Sample { } /// Gets the mutable sample attachment: a map of key-value pairs, where each key and value are byte-slices. - #[zenoh_macros::unstable] #[inline] + #[doc(hidden)] + #[zenoh_macros::unstable] pub fn attachment_mut(&mut self) -> &mut Option { &mut self.attachment }