pub struct Tls { /* private fields */ }Expand description
TLS configuration for the Actix web server
Implementations§
Source§impl Tls
impl Tls
Sourcepub fn cert_file_path(&self) -> &String
pub fn cert_file_path(&self) -> &String
The path to the certificate file (PEM format)
Sourcepub fn key_file_path(&self) -> &String
pub fn key_file_path(&self) -> &String
The path to the key file (PEM format)
Sourcepub fn client_ca_cert(&self) -> &Option<PathBuf>
pub fn client_ca_cert(&self) -> &Option<PathBuf>
Optional path to a CA certificate for mutual TLS client authentication. When set, clients must present a certificate signed by this CA.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tls
impl<'de> Deserialize<'de> for Tls
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 Tls
impl StructuralPartialEq for Tls
Source§impl TlsConfig for Tls
impl TlsConfig for Tls
Source§fn cert_file_path(&self) -> &str
fn cert_file_path(&self) -> &str
The certificate file path.
Source§fn key_file_path(&self) -> &str
fn key_file_path(&self) -> &str
The private key file path.
Source§fn client_ca_cert_path(&self) -> Option<&Path>
fn client_ca_cert_path(&self) -> Option<&Path>
Optional path to a CA certificate whose signatures are required on client certificates.
When
Some, the server enables mutual TLS and rejects clients that do not present a
valid certificate signed by this CA. Defaults to None (no client auth required).Auto Trait Implementations§
impl Freeze for Tls
impl RefUnwindSafe for Tls
impl Send for Tls
impl Sync for Tls
impl Unpin for Tls
impl UnsafeUnpin for Tls
impl UnwindSafe for Tls
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