toku_client 0.1.1

RPC Transport Layer Client Module
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bytesize::ByteSize;
use std::time::Duration;

#[derive(Debug, Clone)]
pub struct Config {
    /// The maximum size of the payload part of a toku frame.
    pub max_payload_size: ByteSize,
    /// The duration of time from when a client makes a request to when we stop waiting for a response
    /// from the server.
    pub request_timeout: Duration,
    /// The duration of time from when a client starts a connect to when we stop trying to handshake.
    pub handshake_timeout: Duration,
    /// Supported encodings.
    pub supported_encodings: &'static [&'static str],
}