pub(crate) struct HttpServer {
tcp_listener: TcpListener,
quic_endpoint: Option<QuicEndpoint>,
}Expand description
HTTP server (TCP for h1/h2, optional QUIC for h3).
Fields§
§tcp_listener: TcpListener§quic_endpoint: Option<QuicEndpoint>Implementations§
Source§impl HttpServer
impl HttpServer
Sourcepub(crate) async fn new_h3(
endpoint: &Endpoint,
quic_config: ServerQuicConfig,
) -> Result<Self>
pub(crate) async fn new_h3( endpoint: &Endpoint, quic_config: ServerQuicConfig, ) -> Result<Self>
Create HTTP/1.1 + HTTP/2 + HTTP/3 server.
pub(crate) fn local_endpoint(&self) -> Result<Endpoint>
Auto Trait Implementations§
impl Freeze for HttpServer
impl !RefUnwindSafe for HttpServer
impl Send for HttpServer
impl Sync for HttpServer
impl Unpin for HttpServer
impl UnsafeUnpin for HttpServer
impl !UnwindSafe for HttpServer
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