Struct s2n_quic_tls::client::Client
source · pub struct Client<L: ConfigLoader = Config> { /* private fields */ }
Implementations§
source§impl<L: ConfigLoader> Client<L>
impl<L: ConfigLoader> Client<L>
sourcepub fn from_loader(loader: L) -> Self
pub fn from_loader(loader: L) -> Self
Creates a Client
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 Client<L>
impl<L: ConfigLoader> ConfigLoader for Client<L>
fn load(&mut self, cx: ConnectionContext<'_>) -> Config
source§impl<L: ConfigLoader> Endpoint for Client<L>
impl<L: ConfigLoader> Endpoint for Client<L>
type Session = Session
fn new_server_session<Params: EncoderValue>(
&mut self,
_params: &Params
) -> Self::Session
fn new_client_session<Params: EncoderValue>(
&mut self,
params: &Params,
server_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