pub struct KeystoreConfig { /* private fields */ }Expand description
TLS key configuration.
Implementations§
Source§impl KeystoreConfig
impl KeystoreConfig
Sourcepub fn key_path(&self) -> &Path
pub fn key_path(&self) -> &Path
Returns the path to the server’s PEM-encoded private key.
Defaults to var/security/key.pem.
Sourcepub fn cert_path(&self) -> &Path
pub fn cert_path(&self) -> &Path
Returns the path to the server’s PEM-encoded certificate chain.
The file should contain a sequence of certificates starting with the leaf certificate corresponding to the key
in Self::key_path followed by the rest of the certificate chain up to a trusted root.
Defaults to var/security/cert.cer.
Trait Implementations§
Source§impl Clone for KeystoreConfig
impl Clone for KeystoreConfig
Source§fn clone(&self) -> KeystoreConfig
fn clone(&self) -> KeystoreConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 KeystoreConfig
impl Debug for KeystoreConfig
Source§impl Default for KeystoreConfig
impl Default for KeystoreConfig
Source§fn default() -> KeystoreConfig
fn default() -> KeystoreConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KeystoreConfig
impl<'de> Deserialize<'de> for KeystoreConfig
Source§fn deserialize<D>(
deserializer: D,
) -> Result<KeystoreConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<KeystoreConfig, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for KeystoreConfig
impl PartialEq for KeystoreConfig
impl StructuralPartialEq for KeystoreConfig
Auto Trait Implementations§
impl Freeze for KeystoreConfig
impl RefUnwindSafe for KeystoreConfig
impl Send for KeystoreConfig
impl Sync for KeystoreConfig
impl Unpin for KeystoreConfig
impl UnwindSafe for KeystoreConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more