Trait s2n_quic::provider::tls::default::connection::Builder

source ·
pub trait Builder: Clone {
    type Output: AsMut<Connection> + AsRef<Connection>;

    // Required method
    fn build_connection(&self, mode: Mode) -> Result<Self::Output, Error>;
}
Expand description

A trait indicating that a structure can produce connections.

Required Associated Types§

Required Methods§

source

fn build_connection(&self, mode: Mode) -> Result<Self::Output, Error>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Builder for Config

Produces new connections with the given Config set.

source§

impl<F, B> Builder for ModifiedBuilder<F, B>
where B: Builder, F: Fn(&mut Connection) -> Result<&mut Connection, Error> + Clone,

§

type Output = <B as Builder>::Output

source§

impl<T> Builder for T
where T: Pool + Clone,

Produces new connections from a pool of reuseable connections.