Struct salvo_core::listener::native_tls::NativeTlsConfig
source · [−]pub struct NativeTlsConfig { /* private fields */ }
Available on crate feature
native-tls
only.Expand description
Builder to set the configuration for the TLS server.
Implementations
sourceimpl NativeTlsConfig
impl NativeTlsConfig
sourcepub fn with_pkcs12_path(self, path: impl AsRef<Path>) -> Self
pub fn with_pkcs12_path(self, path: impl AsRef<Path>) -> Self
Sets the pkcs12 via File Path, returns std::io::Error
if the file cannot be open
sourcepub fn with_pkcs12(self, pkcs12: impl Into<Vec<u8>>) -> Self
pub fn with_pkcs12(self, pkcs12: impl Into<Vec<u8>>) -> Self
Sets the pkcs12 via bytes slice
sourcepub fn with_password(self, password: impl Into<String>) -> Self
pub fn with_password(self, password: impl Into<String>) -> Self
Sets the password
Trait Implementations
sourceimpl Debug for NativeTlsConfig
impl Debug for NativeTlsConfig
sourceimpl Default for NativeTlsConfig
impl Default for NativeTlsConfig
sourceimpl From<NativeTlsConfig> for Identity
impl From<NativeTlsConfig> for Identity
sourcefn from(config: NativeTlsConfig) -> Self
fn from(config: NativeTlsConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for NativeTlsConfig
impl Send for NativeTlsConfig
impl Sync for NativeTlsConfig
impl Unpin for NativeTlsConfig
impl !UnwindSafe for NativeTlsConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more