We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73e8e5d commit 1dce369Copy full SHA for 1dce369
src/thrift_client/mod.rs
@@ -23,10 +23,11 @@
23
//! use rbfrt::thrift_generated::ts::{TsSyncClient, TTsSyncClient};
24
//!
25
//! # fn example() -> Result<(), Box<dyn std::error::Error>> {
26
-//! // Create Thrift client with all protocol setup done
27
-//! let mut ts_client: TsSyncClient<_, _> = thrift_client::connect("localhost:9090")?;
+//! // Create protocol pair and build a service client from it.
+//! let (i_prot, o_prot) = thrift_client::connect("localhost:9090", "ts")?;
28
+//! let mut ts_client = TsSyncClient::new(i_prot, o_prot);
29
-//! // Use ALL Thrift APIs directly
30
+//! // Use generated Thrift APIs directly.
31
//! ts_client.ts_global_ts_value_set(0, 1_000_000_000)?;
32
//! # Ok(())
33
//! # }
0 commit comments