Struct salvo_core::conn::openssl::OpensslConfig
source · #[non_exhaustive]pub struct OpensslConfig {
pub builder_modifier: Option<Box<dyn FnMut(&mut SslAcceptorBuilder) + Send + 'static>>,
/* private fields */
}
Available on crate feature
openssl
only.Expand description
Builder to set the configuration for the Tls server.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.builder_modifier: Option<Box<dyn FnMut(&mut SslAcceptorBuilder) + Send + 'static>>
Builder modifier.
Implementations§
source§impl OpensslConfig
impl OpensslConfig
sourcepub fn builder_modifier<F>(self, modifier: F) -> Self
pub fn builder_modifier<F>(self, modifier: F) -> Self
Set builder modifier.
sourcepub fn create_acceptor_builder(&mut self) -> IoResult<SslAcceptorBuilder>
pub fn create_acceptor_builder(&mut self) -> IoResult<SslAcceptorBuilder>
Create SslAcceptorBuilder
Trait Implementations§
source§impl Debug for OpensslConfig
impl Debug for OpensslConfig
source§impl IntoConfigStream<OpensslConfig> for OpensslConfig
impl IntoConfigStream<OpensslConfig> for OpensslConfig
§type Stream = Once<Ready<OpensslConfig>>
type Stream = Once<Ready<OpensslConfig>>
TLS config stream.
source§fn into_stream(self) -> Self::Stream
fn into_stream(self) -> Self::Stream
Consume itself and return tls config stream.
source§impl<T> IntoConfigStream<OpensslConfig> for T
impl<T> IntoConfigStream<OpensslConfig> for T
source§fn into_stream(self) -> Self
fn into_stream(self) -> Self
Consume itself and return tls config stream.
source§impl TryInto<SslAcceptorBuilder> for OpensslConfig
impl TryInto<SslAcceptorBuilder> for OpensslConfig
Auto Trait Implementations§
impl Freeze for OpensslConfig
impl !RefUnwindSafe for OpensslConfig
impl Send for OpensslConfig
impl !Sync for OpensslConfig
impl Unpin for OpensslConfig
impl !UnwindSafe for OpensslConfig
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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