Struct libp2p_websocket::tls::Builder
source · 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 Self, Error>where
I: IntoIterator<Item = Certificate>,
pub fn server<I>( &mut self, key: PrivateKey, certs: I ) -> Result<&mut Self, Error>where I: IntoIterator<Item = Certificate>,
Set server key and certificate chain.
Auto Trait Implementations§
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more