ConfigLoader

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