Trait s2n_quic::provider::tls::default::ConfigLoader

source ·
pub trait ConfigLoader: 'static + Send {
    // Required method
    fn load(&mut self, cx: ConnectionContext<'_>) -> Config;
}
Expand description

Loads a config for a given connection

This trait can be implemented to override the default config loading for a QUIC endpoint

Required Methods§

source

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

Trait Implementations§

Implementations on Foreign Types§

source§

impl ConfigLoader for Box<dyn ConfigLoader>

source§

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

Implementors§

source§

impl ConfigLoader for Config

source§

impl<L> ConfigLoader for Client<L>
where L: ConfigLoader,

source§

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

source§

impl<T> ConfigLoader for T
where T: FnMut(ConnectionContext<'_>) -> Config + Send + 'static,