Struct s2n_quic::provider::tls::default::server::Server

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

Implementations§

source§

impl Server

source§

impl<L> Server<L>
where L: ConfigLoader,

source

pub fn from_loader(loader: L) -> Server<L>

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 for Server<L>
where L: ConfigLoader,

source§

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

source§

impl Default for Server

source§

fn default() -> Server

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

impl<L> Endpoint for Server<L>
where L: ConfigLoader,

§

type Session = Session

source§

fn new_server_session<Params>( &mut self, params: &Params ) -> <Server<L> as Endpoint>::Session
where Params: EncoderValue,

source§

fn new_client_session<Params>( &mut self, _transport_parameters: &Params, _erver_name: ServerName ) -> <Server<L> as Endpoint>::Session
where Params: EncoderValue,

source§

fn max_tag_length(&self) -> usize

The maximum length of a tag for any algorithm that may be negotiated
source§

impl<L> From<Server<L>> for Config
where L: ConfigLoader,

source§

fn from(server: Server<L>) -> Config

Converts to this type from the input type.
source§

impl Provider for Server

§

type Server = Server

§

type Client = Client

§

type Error = Infallible

source§

fn start_server(self) -> Result<Self::Server, Self::Error>

Creates a server endpoint for the given provider
source§

fn start_client(self) -> Result<Self::Client, Self::Error>

Creates a client endpoint for the given provider

Auto Trait Implementations§

§

impl<L> Freeze for Server<L>
where L: Freeze,

§

impl<L> RefUnwindSafe for Server<L>
where L: RefUnwindSafe,

§

impl<L> Send for Server<L>

§

impl<L> Sync for Server<L>
where L: Sync,

§

impl<L> Unpin for Server<L>
where L: Unpin,

§

impl<L> UnwindSafe for Server<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> TryInto for T
where T: Provider,

§

type Error = Infallible

§

type Provider = T

source§

fn try_into(self) -> Result<<T as TryInto>::Provider, <T as TryInto>::Error>

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

source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V