pub struct TlsConfigBuilder { /* private fields */ }Expand description
TLS 配置构建器
Implementations§
Source§impl TlsConfigBuilder
impl TlsConfigBuilder
Sourcepub fn enable_http2(self, enable: bool) -> Self
pub fn enable_http2(self, enable: bool) -> Self
设置是否启用 HTTP/2
Sourcepub fn build(self) -> WaeResult<TlsAcceptor>
pub fn build(self) -> WaeResult<TlsAcceptor>
构建 TLS 接受器
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsConfigBuilder
impl RefUnwindSafe for TlsConfigBuilder
impl Send for TlsConfigBuilder
impl Sync for TlsConfigBuilder
impl Unpin for TlsConfigBuilder
impl UnsafeUnpin for TlsConfigBuilder
impl UnwindSafe for TlsConfigBuilder
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