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