flare_zrpc/server/
mod.rs

1mod non_sync;
2mod sync;
3
4pub use non_sync::ZrpcNonSyncService;
5pub use non_sync::ZrpcNonSyncServiceHander;
6pub use sync::ZrpcService;
7pub use sync::ZrpcServiceHander;
8
9#[derive(Clone)]
10pub struct ServerConfig {
11    pub service_id: String,
12    pub concurrency: u32,
13    pub bound_channel: u32,
14    pub accept_subfix: bool,
15    pub reply_congestion: zenoh::qos::CongestionControl,
16    pub complete: bool,
17}
18
19impl Default for ServerConfig {
20    fn default() -> Self {
21        Self {
22            service_id: "".to_string(),
23            concurrency: 16,
24            bound_channel: 0,
25            accept_subfix: false,
26            complete: true,
27            reply_congestion: zenoh::qos::CongestionControl::Block,
28        }
29    }
30}