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§impl<'de> Deserialize<'de> for KeystoreConfig
impl<'de> Deserialize<'de> for KeystoreConfig
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
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 UnsafeUnpin 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