pub struct QuicServerBuilder { /* private fields */ }Expand description
Builder for QuicServer.
Implementations§
Source§impl QuicServerBuilder
impl QuicServerBuilder
Sourcepub fn tls(self, tls: TlsConfig) -> Self
pub fn tls(self, tls: TlsConfig) -> Self
Set the TLS configuration (required for production; test helpers available).
Sourcepub fn max_concurrent_streams(self, limit: u32) -> Self
pub fn max_concurrent_streams(self, limit: u32) -> Self
Limit the number of concurrent streams per connection.
Sourcepub fn graceful_timeout(self, timeout: Duration) -> Self
pub fn graceful_timeout(self, timeout: Duration) -> Self
Set the timeout for graceful shutdown to drain existing streams (default 30s).
Sourcepub fn build(self) -> QuicServer
pub fn build(self) -> QuicServer
Return a configured QuicServer. The actual socket bind happens in
serve or serve_with_incoming.
Trait Implementations§
Source§impl Debug for QuicServerBuilder
impl Debug for QuicServerBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for QuicServerBuilder
impl !UnwindSafe for QuicServerBuilder
impl Freeze for QuicServerBuilder
impl Send for QuicServerBuilder
impl Sync for QuicServerBuilder
impl Unpin for QuicServerBuilder
impl UnsafeUnpin for QuicServerBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request