Rust SDK

Tokio + Tonic async gRPC client.

gRPC 1.62.2 Compatibility

Tonic uses a pure Rust HTTP/2 stack (h2 crate), fully wire-compatible with gRPC C++ 1.62.2.

tonic ParametergRPC C++ EquivalentValue
http2_keep_alive_intervalGRPC_ARG_KEEPALIVE_TIME_MS30 s
keep_alive_timeoutGRPC_ARG_KEEPALIVE_TIMEOUT_MS10 s
keep_alive_while_idleGRPC_ARG_KEEPALIVE_PERMIT_WITHOUT_CALLStrue
max_decoding_message_sizeGRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH64 MiB
max_encoding_message_sizeGRPC_ARG_MAX_SEND_MESSAGE_LENGTH64 MiB

Quickstart

use tijet_grpc::TinCore;

let mut client = TinCore::new();
client.connect(None).await?;
client.set_parameter("print_speed", "100").await?;
let speed = client.get_parameter("print_speed").await?;

Note: For the complete Rust API reference including all typed parameter helpers and utility functions, see the Chinese documentation.