[−][src]Struct quinn_proto::generic::ServerConfig
Parameters governing incoming connections
Default values should be suitable for most internet applications.
Fields
transport: Arc<TransportConfig>
Transport configuration to use for incoming connections
crypto: S::ServerConfig
TLS configuration used for incoming connections.
Must be set to use TLS 1.3 only.
token_key: Vec<u8>
Private key used to authenticate data included in handshake tokens.
use_stateless_retry: bool
Whether to require clients to prove ownership of an address before committing resources.
Introduces an additional round-trip to the handshake to make denial of service attacks more difficult.
retry_token_lifetime: u64
Microseconds after a stateless retry token was issued for which it's considered valid.
accept_buffer: u32
Maximum number of incoming connections to buffer.
Accepting a connection removes it from the buffer, so this does not need to be large.
migration: bool
Whether to allow clients to migrate to new addresses
Improves behavior for clients that move between different internet connections or suffer NAT rebinding. Enabled by default.
Trait Implementations
impl<S> Default for ServerConfig<S> where
S: Session,
S::ServerConfig: Default,
[src]
S: Session,
S::ServerConfig: Default,
impl<S> Clone for ServerConfig<S> where
S: Session,
S::ServerConfig: Clone,
[src]
S: Session,
S::ServerConfig: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S> Debug for ServerConfig<S> where
S: Session,
S::ServerConfig: Debug,
[src]
S: Session,
S::ServerConfig: Debug,
Auto Trait Implementations
impl<S> Unpin for ServerConfig<S> where
<S as Session>::ServerConfig: Unpin,
<S as Session>::ServerConfig: Unpin,
impl<S> Sync for ServerConfig<S> where
<S as Session>::ServerConfig: Sync,
<S as Session>::ServerConfig: Sync,
impl<S> Send for ServerConfig<S> where
<S as Session>::ServerConfig: Send,
<S as Session>::ServerConfig: Send,
impl<S> UnwindSafe for ServerConfig<S> where
<S as Session>::ServerConfig: UnwindSafe,
<S as Session>::ServerConfig: UnwindSafe,
impl<S> RefUnwindSafe for ServerConfig<S> where
<S as Session>::ServerConfig: RefUnwindSafe,
<S as Session>::ServerConfig: RefUnwindSafe,
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,