pub(crate) struct HttpServer<C> {
tcp_listener: TcpListener,
codec: C,
quic_endpoint: Option<QuicEndpoint>,
}Expand description
HTTP server (TCP for h1/h2, optional QUIC for h3).
Fields§
§tcp_listener: TcpListener§codec: CEncodes and decodes all HTTP bodies and HTTP/3 streams.
quic_endpoint: Option<QuicEndpoint>Implementations§
Source§impl<C: JsonRpcCodec> HttpServer<C>
impl<C: JsonRpcCodec> HttpServer<C>
Trait Implementations§
Source§impl<C: JsonRpcCodec> HttpAcceptor for HttpServer<C>
impl<C: JsonRpcCodec> HttpAcceptor for HttpServer<C>
Auto Trait Implementations§
impl<C> !Freeze for HttpServer<C>
impl<C> !RefUnwindSafe for HttpServer<C>
impl<C> !UnwindSafe for HttpServer<C>
impl<C> Send for HttpServer<C>where
C: Send,
impl<C> Sync for HttpServer<C>where
C: Sync,
impl<C> Unpin for HttpServer<C>where
C: Unpin,
impl<C> UnsafeUnpin for HttpServer<C>where
C: UnsafeUnpin,
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