pub struct Http3Server { /* private fields */ }Expand description
Optional HTTP/3 listener that runs alongside an existing TCP+TLS server.
Implementations§
Source§impl Http3Server
impl Http3Server
Sourcepub fn new(config: Http3ServerConfig) -> Self
pub fn new(config: Http3ServerConfig) -> Self
Build a server value without starting it.
Sourcepub fn start<S, RespBody>(
self,
service: S,
tls_cert_chain: Vec<CertificateDer<'static>>,
tls_private_key: PrivateKeyDer<'static>,
) -> Result<Http3Handle>
pub fn start<S, RespBody>( self, service: S, tls_cert_chain: Vec<CertificateDer<'static>>, tls_private_key: PrivateKeyDer<'static>, ) -> Result<Http3Handle>
Start the HTTP/3 listener and route requests into service.
The service receives HTTP/3 request headers plus a streaming
H3RequestBody and returns response headers plus any streaming
http_body response body whose data chunks are Bytes.
Trait Implementations§
Source§impl Clone for Http3Server
impl Clone for Http3Server
Source§fn clone(&self) -> Http3Server
fn clone(&self) -> Http3Server
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Http3Server
impl RefUnwindSafe for Http3Server
impl Send for Http3Server
impl Sync for Http3Server
impl Unpin for Http3Server
impl UnsafeUnpin for Http3Server
impl UnwindSafe for Http3Server
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