Struct trust_dns_server::config::dnssec::TlsCertConfig
source · [−]pub struct TlsCertConfig { /* private fields */ }
Expand description
Configuration for a TLS certificate
Implementations
sourceimpl TlsCertConfig
impl TlsCertConfig
sourcepub fn get_endpoint_name(&self) -> &str
pub fn get_endpoint_name(&self) -> &str
return the DNS name of the certificate hosted at the TLS endpoint
sourcepub fn get_cert_type(&self) -> CertType
pub fn get_cert_type(&self) -> CertType
Returns the format type of the certificate file
sourcepub fn get_password(&self) -> Option<&str>
pub fn get_password(&self) -> Option<&str>
optional password for open the pkcs12, none assumes no password
sourcepub fn get_private_key(&self) -> Option<&Path>
pub fn get_private_key(&self) -> Option<&Path>
returns the path to the private key, as associated with the certificate
sourcepub fn get_private_key_type(&self) -> PrivateKeyType
pub fn get_private_key_type(&self) -> PrivateKeyType
returns the path to the private key
Trait Implementations
sourceimpl Debug for TlsCertConfig
impl Debug for TlsCertConfig
sourceimpl<'de> Deserialize<'de> for TlsCertConfig
impl<'de> Deserialize<'de> for TlsCertConfig
sourcefn 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
sourceimpl PartialEq<TlsCertConfig> for TlsCertConfig
impl PartialEq<TlsCertConfig> for TlsCertConfig
sourcefn eq(&self, other: &TlsCertConfig) -> bool
fn eq(&self, other: &TlsCertConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TlsCertConfig) -> bool
fn ne(&self, other: &TlsCertConfig) -> bool
This method tests for !=
.
impl StructuralPartialEq for TlsCertConfig
Auto Trait Implementations
impl RefUnwindSafe for TlsCertConfig
impl Send for TlsCertConfig
impl Sync for TlsCertConfig
impl Unpin for TlsCertConfig
impl UnwindSafe for TlsCertConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more