pub struct Server<L = Config>where
L: ConfigLoader,{ /* private fields */ }
Implementations§
source§impl<L> Server<L>where
L: ConfigLoader,
impl<L> Server<L>where
L: ConfigLoader,
sourcepub fn from_loader(loader: L) -> Server<L>
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,
impl<L> ConfigLoader for Server<L>where
L: ConfigLoader,
fn load(&mut self, cx: ConnectionContext<'_>) -> Config
source§impl<L> Endpoint for Server<L>where
L: ConfigLoader,
impl<L> Endpoint for Server<L>where
L: ConfigLoader,
type Session = Session
fn new_server_session<Params>(
&mut self,
params: &Params
) -> <Server<L> as Endpoint>::Sessionwhere
Params: EncoderValue,
fn new_client_session<Params>(
&mut self,
_transport_parameters: &Params,
_erver_name: ServerName
) -> <Server<L> as Endpoint>::Sessionwhere
Params: EncoderValue,
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 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> 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