pub struct SessionConfig {Show 16 fields
pub auto_reconnect: bool,
pub max_reconnect_attempts: u32,
pub reconnect_delay_ms: u64,
pub max_reconnect_delay_ms: u64,
pub reconnect_backoff: f64,
pub connection_timeout_ms: u64,
pub heartbeat_interval_ms: u64,
pub heartbeat_timeout_ms: u64,
pub session_timeout: Duration,
pub request_timeout: Duration,
pub max_concurrent_requests: u32,
pub enable_compression: bool,
pub buffer_size: usize,
pub retry_config: RetryConfig,
pub enable_circuit_breaker: bool,
pub circuit_breaker_config: CircuitBreakerConfig,
}Expand description
Session configuration
Fields§
§auto_reconnect: boolWhether to enable automatic reconnection
max_reconnect_attempts: u32Maximum number of reconnection attempts
reconnect_delay_ms: u64Initial reconnection delay in milliseconds
max_reconnect_delay_ms: u64Maximum reconnection delay in milliseconds
reconnect_backoff: f64Reconnection backoff multiplier
connection_timeout_ms: u64Connection timeout in milliseconds
heartbeat_interval_ms: u64Heartbeat interval in milliseconds (0 to disable)
heartbeat_timeout_ms: u64Heartbeat timeout in milliseconds
session_timeout: DurationSession timeout duration
request_timeout: DurationRequest timeout duration
max_concurrent_requests: u32Maximum concurrent requests
enable_compression: boolEnable compression
buffer_size: usizeBuffer size for operations
retry_config: RetryConfigRetry policy for operations
enable_circuit_breaker: boolEnable circuit breaker for resilience
circuit_breaker_config: CircuitBreakerConfigCircuit breaker configuration
Trait Implementations§
Source§impl Clone for SessionConfig
impl Clone for SessionConfig
Source§fn clone(&self) -> SessionConfig
fn clone(&self) -> SessionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionConfig
impl Debug for SessionConfig
Auto Trait Implementations§
impl Freeze for SessionConfig
impl RefUnwindSafe for SessionConfig
impl Send for SessionConfig
impl Sync for SessionConfig
impl Unpin for SessionConfig
impl UnsafeUnpin for SessionConfig
impl UnwindSafe for SessionConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].