pub trait ServerQuicExt {
// Provided method
fn new_quic(
config: Arc<ServerConfig>,
quic_version: Version,
params: Vec<u8>,
) -> Result<ServerConnection, Error> { ... }
}
Expand description
Methods specific to QUIC server sessions
Provided Methods§
Sourcefn new_quic(
config: Arc<ServerConfig>,
quic_version: Version,
params: Vec<u8>,
) -> Result<ServerConnection, Error>
fn new_quic( config: Arc<ServerConfig>, quic_version: Version, params: Vec<u8>, ) -> Result<ServerConnection, Error>
Make a new QUIC ServerConnection. This differs from ServerConnection::new()
in that it takes an extra argument, params
, which contains the
TLS-encoded transport parameters to send.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.