Struct s2n_quic_tls::server::Server
source · pub struct Server<L: ConfigLoader = Config> { /* private fields */ }
Implementations§
source§impl<L: ConfigLoader> Server<L>
impl<L: ConfigLoader> Server<L>
sourcepub fn from_loader(loader: L) -> Self
pub fn from_loader(loader: L) -> Self
Creates a Server
from a ConfigLoader
The caller is responsible for building the Config
correctly for QUIC settings. This includes:
- setting a security policy that supports TLS 1.3
- enabling QUIC support
- setting at least one application protocol
Trait Implementations§
source§impl<L: ConfigLoader> ConfigLoader for Server<L>
impl<L: ConfigLoader> ConfigLoader for Server<L>
fn load(&mut self, cx: ConnectionContext<'_>) -> Config
source§impl<L: ConfigLoader> Endpoint for Server<L>
impl<L: ConfigLoader> Endpoint for Server<L>
type Session = Session
fn new_server_session<Params: EncoderValue>(
&mut self,
params: &Params
) -> Self::Session
fn new_client_session<Params: EncoderValue>(
&mut self,
_transport_parameters: &Params,
_erver_name: ServerName
) -> Self::Session
source§fn max_tag_length(&self) -> usize
fn max_tag_length(&self) -> usize
The maximum length of a tag for any algorithm that may be negotiated