Server

Struct 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,

Source§

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.

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>,

Source§

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>,

Source§

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