docs.rs failed to build rustecal-service-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-service
rustecal-service provides a high-level RPC-style service server and client API, enabling request-response interactions with minimal boilerplate.
Features
- ServiceServer: host one or more methods, register handlers via closures
- ServiceClient: invoke remote methods with optional timeouts
- Method metadata (
MethodInfo) and structured responses (ServiceResponse) - Built-in error handling and call-state reporting
Requirements
- Rust 1.60 or later
- Eclipse eCAL C/C++ library v6.0 or later installed and accessible on your system
Installation
Add to your workspace Cargo.toml:
[]
= "0.1"
Quickstart
Server Example
use ;
use MethodInfo;
Client Example
use ;
Traits Reference
-
ServiceServernew(topic: &str) -> Result<Self, String>add_method(method: &str, callback: ServiceCallback) -> Result<(), String>
-
ServiceClientnew(service_name: &str) -> Result<Self, String>call(method: &str, req: ServiceRequest, timeout_ms: Option<i32>) -> Option<ServiceResponse>
See Also
- Examples in the
rustecal-samples/servicedirectory