pub struct HttpsServerConfig {
pub addr: SocketAddr,
pub service_name: String,
pub http_version: HttpVersion,
pub http2_config: Http2Config,
pub http3_config: Http3Config,
pub tls_config: Option<TlsConfig>,
}Expand description
HTTPS 服务器配置
用于配置 HTTPS 服务器的各项参数。
Fields§
§addr: SocketAddr服务器监听地址
service_name: String服务名称
http_version: HttpVersionHTTP 版本配置
http2_config: Http2ConfigHTTP/2 配置
http3_config: Http3ConfigHTTP/3 配置
tls_config: Option<TlsConfig>TLS 配置
Trait Implementations§
Source§impl Clone for HttpsServerConfig
impl Clone for HttpsServerConfig
Source§fn clone(&self) -> HttpsServerConfig
fn clone(&self) -> HttpsServerConfig
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 HttpsServerConfig
impl Debug for HttpsServerConfig
Auto Trait Implementations§
impl Freeze for HttpsServerConfig
impl RefUnwindSafe for HttpsServerConfig
impl Send for HttpsServerConfig
impl Sync for HttpsServerConfig
impl Unpin for HttpsServerConfig
impl UnsafeUnpin for HttpsServerConfig
impl UnwindSafe for HttpsServerConfig
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