File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ macro_rules! downcast_or_new {
8686pub ( crate ) use downcast_or_new;
8787
8888macro_rules! enum_mapper {
89- ( $( $path: ident) ::* : $repr: ty { $( $variant: ident $( = $discriminator: literal) ?) , * $ ( , ) ? } ) => {
89+ ( $( $path: ident) ::* : $repr: ty { $( $variant: ident $( = $discriminator: literal) ?, ) * } ) => {
9090 $crate:: macros:: enum_mapper!( @ $( $path) ::* , $( $path) ::* : $repr { $( $variant $( = $discriminator) ?, ) * } ) ;
9191 } ;
9292 ( @ $ty: ident:: $( $tt: ident) ::* , $path: path: $repr: ty { $( $variant: ident $( = $discriminator: literal) ?, ) * } ) => {
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ impl Priority {
4040enum_mapper ! ( zenoh:: qos:: CongestionControl : u8 {
4141 Drop = 0 ,
4242 Block = 1 ,
43+ BlockFirst = 2 ,
4344} ) ;
4445
4546#[ pymethods]
@@ -50,7 +51,7 @@ impl CongestionControl {
5051
5152enum_mapper ! ( zenoh:: qos:: Reliability : u8 {
5253 BestEffort ,
53- Reliable
54+ Reliable ,
5455} ) ;
5556
5657#[ pymethods]
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ class CongestionControl(Enum):
5757
5858 DROP = auto ()
5959 BLOCK = auto ()
60+ BLOCK_FIRST = _unstable (auto ())
6061
6162 DEFAULT = DROP
6263
You can’t perform that action at this time.
0 commit comments