Struct salvo_core::conn::rustls::RustlsConfig
source · pub struct RustlsConfig { /* private fields */ }
rustls
only.Expand description
Builder to set the configuration for the Tls server.
Implementations§
source§impl RustlsConfig
impl RustlsConfig
sourcepub fn client_auth_optional_path(self, path: impl AsRef<Path>) -> IoResult<Self>
pub fn client_auth_optional_path(self, path: impl AsRef<Path>) -> IoResult<Self>
Sets the trust anchor for optional Tls client authentication via file path.
Anonymous and authenticated clients will be accepted. If no trust anchor is provided by any
of the client_auth_
methods, then client authentication is disabled by default.
sourcepub fn client_auth_optional(self, trust_anchor: impl Into<Vec<u8>>) -> Self
pub fn client_auth_optional(self, trust_anchor: impl Into<Vec<u8>>) -> Self
Sets the trust anchor for optional Tls client authentication via bytes slice.
Anonymous and authenticated clients will be accepted. If no trust anchor is provided by any
of the client_auth_
methods, then client authentication is disabled by default.
sourcepub fn client_auth_required_path(self, path: impl AsRef<Path>) -> IoResult<Self>
pub fn client_auth_required_path(self, path: impl AsRef<Path>) -> IoResult<Self>
Sets the trust anchor for required Tls client authentication via file path.
Only authenticated clients will be accepted. If no trust anchor is provided by any of the
client_auth_
methods, then client authentication is disabled by default.
sourcepub fn client_auth_required(self, trust_anchor: impl Into<Vec<u8>>) -> Self
pub fn client_auth_required(self, trust_anchor: impl Into<Vec<u8>>) -> Self
Sets the trust anchor for required Tls client authentication via bytes slice.
Only authenticated clients will be accepted. If no trust anchor is provided by any of the
client_auth_
methods, then client authentication is disabled by default.
Trait Implementations§
source§impl Clone for RustlsConfig
impl Clone for RustlsConfig
source§fn clone(&self) -> RustlsConfig
fn clone(&self) -> RustlsConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RustlsConfig
impl Debug for RustlsConfig
source§impl IntoConfigStream<RustlsConfig> for RustlsConfig
impl IntoConfigStream<RustlsConfig> for RustlsConfig
§type Stream = Once<Ready<RustlsConfig>>
type Stream = Once<Ready<RustlsConfig>>
source§fn into_stream(self) -> Self::Stream
fn into_stream(self) -> Self::Stream
source§impl<T> IntoConfigStream<RustlsConfig> for T
impl<T> IntoConfigStream<RustlsConfig> for T
source§fn into_stream(self) -> Self
fn into_stream(self) -> Self
source§impl TryInto<ServerConfig> for RustlsConfig
impl TryInto<ServerConfig> for RustlsConfig
source§impl TryInto<ServerConfig> for RustlsConfig
Available on crate feature quinn
only.
impl TryInto<ServerConfig> for RustlsConfig
quinn
only.