docs.rs failed to build rustecal-types-bytes-0.1.7
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rustecal-types-bytes
rustecal-types-bytes provides a simple wrapper for arbitrary binary data (Arc<[u8]>) to use with the typed eCAL Pub/Sub API.
Features
- BytesMessage: wrap and transport raw binary payloads
- Implements
PublisherMessageandSubscriberMessagefor seamless integration - Zero-copy where possible via
Arc<[u8]> - No extra dependencies beyond
rustecal-coreandrustecal-pubsub
Installation
Add to your workspace Cargo.toml:
[]
= "0.1"
Usage
Publisher Example
use ;
use BytesMessage;
Subscriber Example
use ;
use BytesMessage;
Traits Reference
-
PublisherMessagedatatype() -> DataTypeInfoto_bytes(&self) -> Arc<[u8]>
-
SubscriberMessagedatatype() -> DataTypeInfofrom_bytes(bytes: Arc<[u8]>, _info: &DataTypeInfo) -> Option<Self>
See Also
rustecal-types-stringfor UTF-8 string messagesrustecal-types-protobuffor Protobuf-based messagesrustecal-types-serdefor JSON/CBOR/MessagePack via Serde- Examples in the
rustecal-samples/pubsubdirectory