Struct quinn::generic::ServerConfigBuilder [−][src]
Helper for constructing a ServerConfig
to be passed to EndpointBuilder::listen
to enable
incoming connections.
Implementations
impl<S> ServerConfigBuilder<S> where
S: Session,
[src]
S: Session,
pub fn new(config: ServerConfig<S>) -> Self
[src]
Construct a builder using config
as the initial state.
pub fn build(self) -> ServerConfig<S>
[src]
Construct the complete ServerConfig
.
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
impl ServerConfigBuilder<TlsSession>
[src]
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 certificate(
&mut self,
cert_chain: CertificateChain,
key: PrivateKey
) -> Result<&mut Self, TLSError>
[src]
&mut self,
cert_chain: CertificateChain,
key: PrivateKey
) -> Result<&mut Self, TLSError>
Set the certificate chain that will be presented to clients.
pub fn protocols(&mut self, protocols: &[&[u8]]) -> &mut Self
[src]
Set the application-layer protocols to accept, in order of descending preference.
When set, clients which don’t declare support for at least one of the supplied protocols will be rejected.
The IANA maintains a registry of standard protocol IDs, but custom IDs may be used as well.
Trait Implementations
impl<S> Clone for ServerConfigBuilder<S> where
S: Session,
[src]
S: Session,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S> Default for ServerConfigBuilder<S> where
S: Session,
[src]
S: Session,
Auto Trait Implementations
impl<S> RefUnwindSafe for ServerConfigBuilder<S> where
<S as Session>::HmacKey: RefUnwindSafe,
<S as Session>::ServerConfig: RefUnwindSafe,
<S as Session>::HmacKey: RefUnwindSafe,
<S as Session>::ServerConfig: RefUnwindSafe,
impl<S> Send for ServerConfigBuilder<S>
impl<S> Sync for ServerConfigBuilder<S>
impl<S> Unpin for ServerConfigBuilder<S> where
<S as Session>::ServerConfig: Unpin,
<S as Session>::ServerConfig: Unpin,
impl<S> UnwindSafe for ServerConfigBuilder<S> where
<S as Session>::HmacKey: RefUnwindSafe,
<S as Session>::ServerConfig: UnwindSafe,
<S as Session>::HmacKey: RefUnwindSafe,
<S as Session>::ServerConfig: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,