pub struct RedisTlsConfig { /* private fields */ }Expand description
TLS material for a Redis connection.
Configure a root certificate for private certificate authorities. Configure a client certificate and key together when the Redis server requires mTLS.
Implementations§
Source§impl RedisTlsConfig
impl RedisTlsConfig
Sourcepub const fn new(root_cert: Option<SecretBytes>) -> Self
pub const fn new(root_cert: Option<SecretBytes>) -> Self
Creates TLS configuration with an optional PEM-encoded root certificate.
Sourcepub fn with_client_identity(
self,
client_cert: SecretBytes,
client_key: SecretBytes,
) -> Self
pub fn with_client_identity( self, client_cert: SecretBytes, client_key: SecretBytes, ) -> Self
Adds a PEM-encoded client certificate and private key for mTLS.
Trait Implementations§
Source§impl Clone for RedisTlsConfig
impl Clone for RedisTlsConfig
Source§fn clone(&self) -> RedisTlsConfig
fn clone(&self) -> RedisTlsConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedisTlsConfig
impl Debug for RedisTlsConfig
Source§impl Default for RedisTlsConfig
impl Default for RedisTlsConfig
Source§fn default() -> RedisTlsConfig
fn default() -> RedisTlsConfig
Returns the “default value” for a type. Read more
impl Eq for RedisTlsConfig
Source§impl PartialEq for RedisTlsConfig
impl PartialEq for RedisTlsConfig
impl StructuralPartialEq for RedisTlsConfig
Auto Trait Implementations§
impl Freeze for RedisTlsConfig
impl RefUnwindSafe for RedisTlsConfig
impl Send for RedisTlsConfig
impl Sync for RedisTlsConfig
impl Unpin for RedisTlsConfig
impl UnsafeUnpin for RedisTlsConfig
impl UnwindSafe for RedisTlsConfig
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