Struct libp2p::websocket::tls::Builder [−][src]
pub struct Builder { /* fields omitted */ }Expand description
TLS configuration builder.
Implementations
pub fn server<I>(
&mut self,
key: PrivateKey,
certs: I
) -> Result<&mut Builder, Error> where
I: IntoIterator<Item = Certificate>, [src]
pub fn server<I>(
&mut self,
key: PrivateKey,
certs: I
) -> Result<&mut Builder, Error> where
I: IntoIterator<Item = Certificate>, [src]Set server key and certificate chain.
Add an additional trust anchor.
Auto Trait Implementations
impl !RefUnwindSafe for Builderimpl !UnwindSafe for Builder