pub struct RequestResponseConfig { /* private fields */ }
Expand description
The configuration for a RequestResponse
protocol.
Implementations§
source§impl RequestResponseConfig
impl RequestResponseConfig
sourcepub fn set_connection_keep_alive(&mut self, v: Duration) -> &mut Self
pub fn set_connection_keep_alive(&mut self, v: Duration) -> &mut Self
Sets the keep-alive timeout of idle connections.
sourcepub fn set_request_timeout(&mut self, v: Duration) -> &mut Self
pub fn set_request_timeout(&mut self, v: Duration) -> &mut Self
Sets the timeout for inbound and outbound requests.
Trait Implementations§
source§impl Clone for RequestResponseConfig
impl Clone for RequestResponseConfig
source§fn clone(&self) -> RequestResponseConfig
fn clone(&self) -> RequestResponseConfig
Returns a copy 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 more