Skip to content

Commit

Permalink
add payload_mut accessor to ReplyError
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter committed Dec 17, 2024
1 parent 216505c commit 3ba037d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zenoh/src/api/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ impl ReplyError {
&self.payload
}

/// Gets the mutable payload of this ReplyError.
#[inline]
pub fn payload_mut(&mut self) -> &mut ZBytes {
&mut self.payload
}

/// Gets the encoding of this ReplyError.
#[inline]
pub fn encoding(&self) -> &Encoding {
Expand Down

0 comments on commit 3ba037d

Please sign in to comment.