pub struct Builder { /* private fields */ }
Expand description
TLS configuration builder.
Implementations§
source§impl Builder
impl Builder
sourcepub fn server<I>(
&mut self,
key: PrivateKey,
certs: I
) -> Result<&mut Builder, Error>where
I: IntoIterator<Item = Certificate>,
pub fn server<I>(
&mut self,
key: PrivateKey,
certs: I
) -> Result<&mut Builder, Error>where
I: IntoIterator<Item = Certificate>,
Set server key and certificate chain.