pub struct ConnectionParams {
pub connect_timeout_in_ms: u64,
pub request_timeout_in_ms: u64,
pub concurrency_limit: usize,
pub max_concurrent_streams: u32,
pub tcp_keepalive_in_secs: u64,
pub http2_keep_alive_interval_in_secs: u64,
pub http2_keep_alive_timeout_in_secs: u64,
pub max_frame_size: u32,
pub connection_window_size: u32,
pub stream_window_size: u32,
pub adaptive_window: bool,
}
Expand description
Low-level network parameters for a specific connection type
Fields§
§connect_timeout_in_ms: u64
TCP connect timeout in milliseconds
request_timeout_in_ms: u64
gRPC request completion timeout in milliseconds
concurrency_limit: usize
Max concurrent requests per connection
max_concurrent_streams: u32
HTTP2 SETTINGS_MAX_CONCURRENT_STREAMS
tcp_keepalive_in_secs: u64
TCP keepalive in seconds (None to disable)
http2_keep_alive_interval_in_secs: u64
HTTP2 keepalive ping interval in seconds
http2_keep_alive_timeout_in_secs: u64
HTTP2 keepalive timeout in seconds
max_frame_size: u32
HTTP2 max frame size in bytes
connection_window_size: u32
Initial connection-level flow control window in bytes
stream_window_size: u32
Initial stream-level flow control window in bytes
adaptive_window: bool
Enable HTTP2 adaptive window sizing
Trait Implementations§
Source§impl Clone for ConnectionParams
impl Clone for ConnectionParams
Source§fn clone(&self) -> ConnectionParams
fn clone(&self) -> ConnectionParams
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 moreSource§impl Debug for ConnectionParams
impl Debug for ConnectionParams
Source§impl Default for ConnectionParams
impl Default for ConnectionParams
Source§fn default() -> ConnectionParams
fn default() -> ConnectionParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectionParams
impl<'de> Deserialize<'de> for ConnectionParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConnectionParams
impl RefUnwindSafe for ConnectionParams
impl Send for ConnectionParams
impl Sync for ConnectionParams
impl Unpin for ConnectionParams
impl UnwindSafe for ConnectionParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request