pub struct HttpsServer<S = ()> { /* private fields */ }Expand description
HTTPS 服务器
提供 HTTP/HTTPS 服务的核心类型。
Implementations§
Source§impl<S> HttpsServer<S>
impl<S> HttpsServer<S>
Sourcepub async fn serve(self) -> HttpsResult<()>
pub async fn serve(self) -> HttpsResult<()>
启动服务器
Auto Trait Implementations§
impl<S> Freeze for HttpsServer<S>where
S: Freeze,
impl<S = ()> !RefUnwindSafe for HttpsServer<S>
impl<S> Send for HttpsServer<S>where
S: Send,
impl<S> Sync for HttpsServer<S>where
S: Sync,
impl<S> Unpin for HttpsServer<S>where
S: Unpin,
impl<S> UnsafeUnpin for HttpsServer<S>where
S: UnsafeUnpin,
impl<S = ()> !UnwindSafe for HttpsServer<S>
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