Skip to content

Commit

Permalink
Able to unwrap while using reply with attachment. (#658)
Browse files Browse the repository at this point in the history
* Able to unwrap while using reply with attachment.

Signed-off-by: ChenYing Kuo <[email protected]>

* Add Debug trait to other Builder.

Signed-off-by: ChenYing Kuo <[email protected]>

---------

Signed-off-by: ChenYing Kuo <[email protected]>
  • Loading branch information
evshary authored Jan 25, 2024
1 parent 8cd786f commit 4f03fc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zenoh/src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use zenoh_protocol::core::{WhatAmI, ZenohId};
/// # })
/// ```
#[must_use = "Resolvables do nothing unless you resolve them using the `res` method from either `SyncResolve` or `AsyncResolve`"]
#[derive(Debug)]
pub struct ZidBuilder<'a> {
pub(crate) session: SessionRef<'a>,
}
Expand Down Expand Up @@ -69,6 +70,7 @@ impl<'a> AsyncResolve for ZidBuilder<'a> {
/// # })
/// ```
#[must_use = "Resolvables do nothing unless you resolve them using the `res` method from either `SyncResolve` or `AsyncResolve`"]
#[derive(Debug)]
pub struct RoutersZidBuilder<'a> {
pub(crate) session: SessionRef<'a>,
}
Expand Down Expand Up @@ -115,6 +117,7 @@ impl<'a> AsyncResolve for RoutersZidBuilder<'a> {
/// # })
/// ```
#[must_use = "Resolvables do nothing unless you resolve them using the `res` method from either `SyncResolve` or `AsyncResolve`"]
#[derive(Debug)]
pub struct PeersZidBuilder<'a> {
pub(crate) session: SessionRef<'a>,
}
Expand Down
1 change: 1 addition & 0 deletions zenoh/src/queryable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl fmt::Display for Query {

/// A builder returned by [`Query::reply()`](Query::reply).
#[must_use = "Resolvables do nothing unless you resolve them using the `res` method from either `SyncResolve` or `AsyncResolve`"]
#[derive(Debug)]
pub struct ReplyBuilder<'a> {
query: &'a Query,
result: Result<Sample, Value>,
Expand Down
1 change: 1 addition & 0 deletions zenoh/src/sample.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ mod attachment {

/// A builder for [`Attachment`]
#[zenoh_macros::unstable]
#[derive(Debug)]
pub struct AttachmentBuilder {
pub(crate) inner: Vec<u8>,
}
Expand Down

0 comments on commit 4f03fc7

Please sign in to comment.