pub struct Http3Service { /* private fields */ }Expand description
HTTP/3 service over QUIC that dispatches requests through a compiled
sova_core::Server and writes responses back over h3.
Implementations§
Source§impl Http3Service
impl Http3Service
Sourcepub fn from_tls(
bind_addr: SocketAddr,
tls: Tls,
alpn: Vec<Vec<u8>>,
server: SovaServer,
) -> Result<Self>
pub fn from_tls( bind_addr: SocketAddr, tls: Tls, alpn: Vec<Vec<u8>>, server: SovaServer, ) -> Result<Self>
Build from an existing sova_core::Tls (share with HTTPS via Clone).
pub fn from_pem( bind_addr: SocketAddr, cert_path: impl AsRef<Path>, key_path: impl AsRef<Path>, alpn: Vec<Vec<u8>>, server: SovaServer, ) -> Result<Self>
Sourcepub fn install(self, app: &mut App)
pub fn install(self, app: &mut App)
Register as a BackgroundService and attach TLS to the app HTTPS listener.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Http3Service
impl !UnwindSafe for Http3Service
impl Freeze for Http3Service
impl Send for Http3Service
impl Sync for Http3Service
impl Unpin for Http3Service
impl UnsafeUnpin for Http3Service
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