pub struct Builder { /* private fields */ }Implementations§
Source§impl Builder
impl Builder
pub fn new() -> Self
pub fn with_certificate<C: IntoCertificate, PK: IntoPrivateKey>( self, certificate: C, private_key: PK, ) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>
pub fn with_cert_resolver( self, cert_resolver: Arc<dyn ResolvesServerCert>, ) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>
👎Deprecated: client and server builders should be used instead
pub fn with_application_protocols<P: Iterator<Item = I>, I: AsRef<[u8]>>( self, protocols: P, ) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>
pub fn with_key_logging( self, ) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>
Sourcepub fn with_prefer_server_cipher_suite_order(
self,
enabled: bool,
) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>
pub fn with_prefer_server_cipher_suite_order( self, enabled: bool, ) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>
If enabled, the cipher suite order of the client is ignored, and the top cipher suite in the server list that the client supports is chosen (default: true)
pub fn build(self) -> Result<Server, Box<dyn Error + Send + Sync + 'static>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
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