Struct openssl::ssl::SslAcceptor
source · pub struct SslAcceptor(_);
Expand description
A type which wraps server-side streams in a TLS session.
OpenSSL’s default configuration is highly insecure. This connector manages the OpenSSL structures, configuring cipher suites, session options, and more.
Implementations
sourceimpl SslAcceptor
impl SslAcceptor
sourcepub fn mozilla_intermediate(
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
pub fn mozilla_intermediate(
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
Creates a new builder configured to connect to non-legacy clients. This should generally be considered a reasonable default choice.
This corresponds to the intermediate configuration of Mozilla’s server side TLS recommendations. See its documentation for more details on specifics.
sourcepub fn mozilla_modern(
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
pub fn mozilla_modern(
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
Creates a new builder configured to connect to modern clients.
This corresponds to the modern configuration of Mozilla’s server side TLS recommendations. See its documentation for more details on specifics.
Trait Implementations
sourceimpl Clone for SslAcceptor
impl Clone for SslAcceptor
sourcefn clone(&self) -> SslAcceptor
fn clone(&self) -> SslAcceptor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for SslAcceptor
impl Send for SslAcceptor
impl Sync for SslAcceptor
impl Unpin for SslAcceptor
impl UnwindSafe for SslAcceptor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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