pub struct TlsManager { /* private fields */ }Expand description
High-performance TLS connector with cached configuration
Caches the parsed TLS configuration including certificates to avoid expensive re-parsing on every connection. Certificates are loaded once during initialization and reused for all connections.
Implementations§
Source§impl TlsManager
impl TlsManager
Sourcepub fn new(config: TlsConfig) -> Result<Self, Error>
pub fn new(config: TlsConfig) -> Result<Self, Error>
Create a new TLS manager with the given configuration
Performance: Loads and parses certificates once during initialization instead of on every connection, eliminating certificate parsing overhead (DER parsing, X.509 validation, signature verification).
Trait Implementations§
Source§impl Clone for TlsManager
impl Clone for TlsManager
Auto Trait Implementations§
impl Freeze for TlsManager
impl !RefUnwindSafe for TlsManager
impl Send for TlsManager
impl Sync for TlsManager
impl Unpin for TlsManager
impl !UnwindSafe for TlsManager
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