Struct s2n_quic_tls::client::Client

source ·
pub struct Client<L: ConfigLoader = Config> { /* private fields */ }

Implementations§

source§

impl Client

source§

impl<L: ConfigLoader> Client<L>

source

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>

source§

fn load(&mut self, cx: ConnectionContext<'_>) -> Config

source§

impl Default for Client

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<L: ConfigLoader> Endpoint for Client<L>

§

type Session = Session

source§

fn new_server_session<Params: EncoderValue>( &mut self, _params: &Params ) -> Self::Session

source§

fn new_client_session<Params: EncoderValue>( &mut self, params: &Params, server_name: ServerName ) -> Self::Session

source§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T, U> Upcast<T> for U
where T: UpcastFrom<U>,

source§

fn upcast(self) -> T

source§

impl<T, B> UpcastFrom<Counter<T, B>> for T

source§

fn upcast_from(value: Counter<T, B>) -> T