pub struct ServerConf {Show 22 fields
pub admin: bool,
pub name: String,
pub addr: String,
pub access_log: Option<String>,
pub locations: Vec<String>,
pub tls_cipher_list: Option<String>,
pub tls_ciphersuites: Option<String>,
pub tls_min_version: Option<String>,
pub tls_max_version: Option<String>,
pub threads: Option<usize>,
pub error_template: String,
pub tcp_keepalive: Option<TcpKeepalive>,
pub tcp_fastopen: Option<usize>,
pub reuse_port: Option<bool>,
pub global_certificates: bool,
pub enabled_h2: bool,
pub prometheus_metrics: Option<String>,
pub otlp_exporter: Option<String>,
pub modules: Option<Vec<String>>,
pub enable_server_timing: bool,
pub downstream_read_timeout: Option<Duration>,
pub downstream_write_timeout: Option<Duration>,
}Fields§
§admin: bool§name: String§addr: String§access_log: Option<String>§locations: Vec<String>§tls_cipher_list: Option<String>§tls_ciphersuites: Option<String>§tls_min_version: Option<String>§tls_max_version: Option<String>§threads: Option<usize>§error_template: String§tcp_keepalive: Option<TcpKeepalive>§tcp_fastopen: Option<usize>§reuse_port: Option<bool>Enable SO_REUSEPORT to allow multiple sockets to bind to the same address and port. This is useful for load balancing across multiple worker processes. See the man page for more information.
global_certificates: bool§enabled_h2: bool§prometheus_metrics: Option<String>§otlp_exporter: Option<String>§modules: Option<Vec<String>>§enable_server_timing: bool§downstream_read_timeout: Option<Duration>§downstream_write_timeout: Option<Duration>Trait Implementations§
Source§impl Debug for ServerConf
impl Debug for ServerConf
Source§impl Default for ServerConf
impl Default for ServerConf
Source§fn default() -> ServerConf
fn default() -> ServerConf
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerConf
impl RefUnwindSafe for ServerConf
impl Send for ServerConf
impl Sync for ServerConf
impl Unpin for ServerConf
impl UnsafeUnpin for ServerConf
impl UnwindSafe for ServerConf
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> 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::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.