docs.rs failed to build rustecal-types-string-0.1.1
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-string
rustecal-types-string
provides a simple wrapper for UTF-8 string messages (Arc<str>
) to use with the typed eCAL Pub/Sub API.
Features
- StringMessage: wrap and transport UTF-8 string payloads
- Implements
PublisherMessage
andSubscriberMessage
for seamless integration - Zero-copy where possible via
Arc<str>
- No extra dependencies beyond
rustecal-core
andrustecal-pubsub
Installation
Add to your workspace Cargo.toml
:
[]
= "0.1"
Usage
Publisher Example
use Arc;
use ;
use StringMessage;
Subscriber Example
use ;
use StringMessage;
Traits Reference
-
PublisherMessage
fn datatype() -> DataTypeInfo
fn to_bytes(&self) -> Arc<[u8]>
-
SubscriberMessage
fn datatype() -> DataTypeInfo
fn from_bytes(bytes: Arc<[u8]>, _data_type_info: &DataTypeInfo) -> Option<Self>
See Also
rustecal-types-bytes
for raw binary data messagesrustecal-types-protobuf
for Protobuf-based messagesrustecal-types-serde
for JSON/CBOR/MessagePack via Serde- Examples in the
rustecal-samples/pubsub
directory