pub struct TlsProfileSpec {
pub cert: PathBuf,
pub key: PathBuf,
pub ca: Option<PathBuf>,
}Expand description
PEM material for one TLS profile.
Used by TlsProfileMap::build to assemble per-DC server
and client configs from on-disk paths. cert and key are
required; ca is optional and, when present, pins the
trust anchor for both directions and turns the listener
into a mutual-TLS deployment.
Fields§
§cert: PathBufPEM certificate path.
key: PathBufPEM private-key path matching Self::cert.
ca: Option<PathBuf>Optional PEM CA bundle.
Trait Implementations§
Source§impl Clone for TlsProfileSpec
impl Clone for TlsProfileSpec
Source§fn clone(&self) -> TlsProfileSpec
fn clone(&self) -> TlsProfileSpec
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 moreAuto Trait Implementations§
impl Freeze for TlsProfileSpec
impl RefUnwindSafe for TlsProfileSpec
impl Send for TlsProfileSpec
impl Sync for TlsProfileSpec
impl Unpin for TlsProfileSpec
impl UnsafeUnpin for TlsProfileSpec
impl UnwindSafe for TlsProfileSpec
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