Skip to content

Commit

Permalink
mark remaining sample-mutating methods as unstable and hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Mar 13, 2024
1 parent f3af52a commit 0ca41e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zenoh/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<Attachment> {
&mut self.attachment
}
Expand Down

0 comments on commit 0ca41e8

Please sign in to comment.