[][src]Struct quinn::ServerConfigBuilder

pub struct ServerConfigBuilder { /* fields omitted */ }

Helper for constructing a ServerConfig to be passed to EndpointBuilder::listen to enable incoming connections.

Methods

impl ServerConfigBuilder
[src]

pub fn new(config: ServerConfig) -> Self
[src]

Construct a builder using config as the initial state.

pub fn build(self) -> ServerConfig
[src]

Construct the complete ServerConfig.

pub fn enable_keylog(&mut self) -> &mut Self
[src]

Enable NSS-compatible cryptographic key logging to the SSLKEYLOGFILE environment variable.

Useful for debugging encrypted communications with protocol analyzers such as Wireshark.

pub fn set_certificate(
    &mut self,
    cert_chain: CertificateChain,
    key: PrivateKey
) -> Result<&mut Self, TLSError>
[src]

Set the certificate chain that will be presented to clients.

pub fn set_protocols(&mut self, protocols: &[&[u8]]) -> &mut Self
[src]

Set the application-layer protocols to accept.

When set, clients which don't declare support for at least one of the supplied protocols will be rejected.

pub fn use_stateless_retry(&mut self, enabled: bool) -> &mut Self
[src]

Whether to require clients to prove they can receive packets before accepting a connection

Trait Implementations

impl Default for ServerConfigBuilder
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T