pub struct ClientConfig {
pub task_timeout: usize,
pub read_timeout: Duration,
pub write_timeout: Duration,
pub idle_timeout: Duration,
pub connect_timeout: Duration,
pub thresholds: usize,
pub stream_buf_size: usize,
}Expand description
General config for client-side
Fields§
§task_timeout: usizetimeout of RpcTask waiting for response, in seconds.
read_timeout: Durationsocket read timeout
write_timeout: DurationSocket write timeout
idle_timeout: DurationSocket idle time to be close. for connection pool.
connect_timeout: Durationconnect timeout
thresholds: usizeHow many async RpcTask in the queue, prevent overflow server capacity
stream_buf_size: usizeIn bytes. when non-zero, overwrite the default DEFAULT_BUF_SIZE of transport
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more