pub struct HttpsServerConfig {
pub addr: SocketAddr,
pub service_name: String,
pub http_version: HttpVersion,
pub http2_config: Http2Config,
pub tls_config: Option<TlsConfig>,
}Expand description
HTTPS 服务配置
Fields§
§addr: SocketAddr服务监听地址
service_name: String服务名称
http_version: HttpVersionHTTP 协议版本
http2_config: Http2ConfigHTTP/2 配置
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