Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ macro_rules! downcast_or_new {
pub(crate) use downcast_or_new;

macro_rules! enum_mapper {
($($path:ident)::*: $repr:ty { $($variant:ident $(= $discriminator:literal)?),* $(,)? }) => {
($($path:ident)::*: $repr:ty { $($variant:ident $(= $discriminator:literal)?,)* }) => {
$crate::macros::enum_mapper!(@ $($path)::*, $($path)::*: $repr { $($variant $(= $discriminator)?,)* });
};
(@ $ty:ident::$($tt:ident)::*, $path:path: $repr:ty { $($variant:ident $(= $discriminator:literal)?,)* }) => {
Expand Down
3 changes: 2 additions & 1 deletion src/qos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ impl Priority {
enum_mapper!(zenoh::qos::CongestionControl: u8 {
Drop = 0,
Block = 1,
BlockFirst = 2,
});

#[pymethods]
Expand All @@ -50,7 +51,7 @@ impl CongestionControl {

enum_mapper!(zenoh::qos::Reliability: u8 {
BestEffort,
Reliable
Reliable,
});

#[pymethods]
Expand Down
1 change: 1 addition & 0 deletions zenoh/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ class CongestionControl(Enum):

DROP = auto()
BLOCK = auto()
BLOCK_FIRST = _unstable(auto())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there any way to handle this _unstable in docs generation ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so


DEFAULT = DROP

Expand Down
Loading