pub struct TlsConfig { /* private fields */ }Expand description
TLS settings represented only by external certificate references.
Implementations§
Source§impl TlsConfig
impl TlsConfig
Sourcepub fn enabled(certificate: SecretRef, private_key: SecretRef) -> Self
pub fn enabled(certificate: SecretRef, private_key: SecretRef) -> Self
Enables TLS using certificate and private-key references.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Reports whether TLS is enabled.
Sourcepub fn certificate(&self) -> Option<&SecretRef>
pub fn certificate(&self) -> Option<&SecretRef>
Returns the certificate reference.
Sourcepub fn private_key(&self) -> Option<&SecretRef>
pub fn private_key(&self) -> Option<&SecretRef>
Returns the private-key reference.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TlsConfig
impl<'de> Deserialize<'de> for TlsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TlsConfig
impl StructuralPartialEq for TlsConfig
Auto Trait Implementations§
impl Freeze for TlsConfig
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnsafeUnpin for TlsConfig
impl UnwindSafe for TlsConfig
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