pub struct ServerConfig {
pub enable_sotw: bool,
pub enable_delta: bool,
pub max_concurrent_streams: Option<u32>,
pub keepalive_interval: Option<Duration>,
pub keepalive_timeout: Option<Duration>,
pub max_request_size: usize,
pub compression: CompressionConfig,
pub grace_period: Duration,
pub enable_health: bool,
pub enable_metrics: bool,
pub enable_connection_tracking: bool,
}Expand description
Configuration for the xDS server.
Fields§
§enable_sotw: boolEnable State-of-the-World protocol.
enable_delta: boolEnable Delta xDS protocol.
max_concurrent_streams: Option<u32>Maximum concurrent streams per connection.
keepalive_interval: Option<Duration>Keepalive interval.
keepalive_timeout: Option<Duration>Keepalive timeout.
max_request_size: usizeMaximum request size in bytes.
compression: CompressionConfigResponse compression.
grace_period: DurationGrace period for shutdown.
enable_health: boolEnable health checking.
enable_metrics: boolEnable metrics.
enable_connection_tracking: boolEnable connection tracking.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§impl Debug for ServerConfig
impl Debug for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
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,
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