pub struct Builder<T>(/* private fields */);Expand description
A builder for SecurityConfig
Implementations§
Source§impl Builder<Complete>
impl Builder<Complete>
Sourcepub fn ca_file(self, ca_file: impl Into<Option<PathBuf>>) -> Builder<Complete>
pub fn ca_file(self, ca_file: impl Into<Option<PathBuf>>) -> Builder<Complete>
Sets the ca_file field.
Sourcepub fn key_file(self, key_file: impl Into<Option<PathBuf>>) -> Builder<Complete>
pub fn key_file(self, key_file: impl Into<Option<PathBuf>>) -> Builder<Complete>
Sets the key_file field.
Sourcepub fn cert_file(
self,
cert_file: impl Into<Option<PathBuf>>,
) -> Builder<Complete>
pub fn cert_file( self, cert_file: impl Into<Option<PathBuf>>, ) -> Builder<Complete>
Sets the cert_file field.
Sourcepub fn build(self) -> SecurityConfig
pub fn build(self) -> SecurityConfig
Consumes the builder, returning a SecurityConfig.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Builder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Builder<T>where
T: RefUnwindSafe,
impl<T> Send for Builder<T>where
T: Send,
impl<T> Sync for Builder<T>where
T: Sync,
impl<T> Unpin for Builder<T>where
T: Unpin,
impl<T> UnsafeUnpin for Builder<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Builder<T>where
T: UnwindSafe,
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