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
Auto Trait Implementations§
impl<L> Freeze for Client<L>where
L: Freeze,
impl<L> RefUnwindSafe for Client<L>where
L: RefUnwindSafe,
impl<L> Send for Client<L>
impl<L> Sync for Client<L>where
L: Sync,
impl<L> Unpin for Client<L>where
L: Unpin,
impl<L> UnwindSafe for Client<L>where
L: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more