Skip to content

Commit

Permalink
Add encoding types (eclipse-zenoh#240)
Browse files Browse the repository at this point in the history
* Add encoding types

* Map error

* Adress review comments

* Sync Cargo.lock
  • Loading branch information
Mallets authored Jun 26, 2024
1 parent 1a06c07 commit cb5db69
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 28 deletions.
50 changes: 25 additions & 25 deletions Cargo.lock

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

24 changes: 21 additions & 3 deletions src/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,29 @@ impl Encoding {
#[classattr]
const ZENOH_BYTES: Self = Self(zenoh::encoding::Encoding::ZENOH_BYTES);
#[classattr]
const ZENOH_INT: Self = Self(zenoh::encoding::Encoding::ZENOH_INT);
const ZENOH_INT8: Self = Self(zenoh::encoding::Encoding::ZENOH_INT8);
#[classattr]
const ZENOH_UINT: Self = Self(zenoh::encoding::Encoding::ZENOH_UINT);
const ZENOH_INT16: Self = Self(zenoh::encoding::Encoding::ZENOH_INT16);
#[classattr]
const ZENOH_FLOAT: Self = Self(zenoh::encoding::Encoding::ZENOH_FLOAT);
const ZENOH_INT32: Self = Self(zenoh::encoding::Encoding::ZENOH_INT32);
#[classattr]
const ZENOH_INT64: Self = Self(zenoh::encoding::Encoding::ZENOH_INT64);
#[classattr]
const ZENOH_INT128: Self = Self(zenoh::encoding::Encoding::ZENOH_INT128);
#[classattr]
const ZENOH_UINT8: Self = Self(zenoh::encoding::Encoding::ZENOH_UINT8);
#[classattr]
const ZENOH_UINT16: Self = Self(zenoh::encoding::Encoding::ZENOH_UINT16);
#[classattr]
const ZENOH_UINT32: Self = Self(zenoh::encoding::Encoding::ZENOH_UINT32);
#[classattr]
const ZENOH_UINT64: Self = Self(zenoh::encoding::Encoding::ZENOH_UINT64);
#[classattr]
const ZENOH_UINT128: Self = Self(zenoh::encoding::Encoding::ZENOH_UINT128);
#[classattr]
const ZENOH_FLOAT32: Self = Self(zenoh::encoding::Encoding::ZENOH_FLOAT32);
#[classattr]
const ZENOH_FLOAT64: Self = Self(zenoh::encoding::Encoding::ZENOH_FLOAT64);
#[classattr]
const ZENOH_BOOL: Self = Self(zenoh::encoding::Encoding::ZENOH_BOOL);
#[classattr]
Expand Down

0 comments on commit cb5db69

Please sign in to comment.